summaryrefslogtreecommitdiff
path: root/vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Exception/ValidationExceptionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Exception/ValidationExceptionTest.php')
-rw-r--r--vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Exception/ValidationExceptionTest.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Exception/ValidationExceptionTest.php b/vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Exception/ValidationExceptionTest.php
new file mode 100644
index 0000000..ef789d8
--- /dev/null
+++ b/vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Exception/ValidationExceptionTest.php
@@ -0,0 +1,17 @@
+<?php
+
+namespace Guzzle\Tests\Service\Exception;
+
+use Guzzle\Service\Exception\ValidationException;
+
+class ValidationExceptionTest extends \Guzzle\Tests\GuzzleTestCase
+{
+ public function testCanSetAndRetrieveErrors()
+ {
+ $errors = array('foo', 'bar');
+
+ $e = new ValidationException('Foo');
+ $e->setErrors($errors);
+ $this->assertEquals($errors, $e->getErrors());
+ }
+}