1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18:
<?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());
}
}