You are here

public function AllValidatorTest::testThrowsExceptionIfNotTraversable in Plug 7

@expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/AllValidatorTest.php, line 42

Class

AllValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testThrowsExceptionIfNotTraversable() {
  $this->validator
    ->validate('foo.barbar', new All(new Range(array(
    'min' => 4,
  ))));
}