Open Monograph Press
3.3.0
ValidationExceptionTest.php
1
<?php
2
3
namespace
Guzzle\Tests\Service\Exception
;
4
5
use
Guzzle\Service\Exception\ValidationException
;
6
7
class
ValidationExceptionTest
extends
\Guzzle\Tests\GuzzleTestCase
8
{
9
public
function
testCanSetAndRetrieveErrors
()
10
{
11
$errors = array(
'foo'
,
'bar'
);
12
13
$e =
new
ValidationException
(
'Foo'
);
14
$e->setErrors($errors);
15
$this->assertEquals($errors, $e->getErrors());
16
}
17
}
Guzzle\Tests\GuzzleTestCase
Definition:
GuzzleTestCase.php:22
Guzzle\Tests\Service\Exception\ValidationExceptionTest
Definition:
ValidationExceptionTest.php:7
Guzzle\Tests\Service\Exception\ValidationExceptionTest\testCanSetAndRetrieveErrors
testCanSetAndRetrieveErrors()
Definition:
ValidationExceptionTest.php:9
Guzzle\Service\Exception\ValidationException
Definition:
ValidationException.php:7
Guzzle\Tests\Service\Exception
Definition:
CommandTransferExceptionTest.php:3
plugins
paymethod
paypal
lib
vendor
guzzle
guzzle
tests
Guzzle
Tests
Service
Exception
ValidationExceptionTest.php
Generated on Fri Aug 28 2020 14:53:58 for Open Monograph Press by
1.8.17