public function CollectionValidatorTest::testThrowsExceptionIfNotTraversable

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

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/CollectionValidatorTest.php, line 70

Class

CollectionValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testThrowsExceptionIfNotTraversable() {
  $this->validator
    ->validate('foobar', new Collection(array(
    'fields' => array(
      'foo' => new Range(array(
        'min' => 4,
      )),
    ),
  )));
}