You are here

public function AllValidatorTest::testThrowsExceptionIfNotTraversable in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Constraints/AllValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\AllValidatorTest::testThrowsExceptionIfNotTraversable()

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

File

vendor/symfony/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,
  ))));
}