public function AllValidatorTest::testThrowsExceptionIfNotTraversable

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

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/AllValidatorTest.php, line 53

Class

AllValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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