You are here

public function Abstract2Dot5ApiTest::testExpectTraversableIfTraversalEnabledOnClass in Zircon Profile 8

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

@expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException

File

vendor/symfony/validator/Tests/Validator/Abstract2Dot5ApiTest.php, line 425

Class

Abstract2Dot5ApiTest
Verifies that a validator satisfies the API of Symfony 2.5+.

Namespace

Symfony\Component\Validator\Tests\Validator

Code

public function testExpectTraversableIfTraversalEnabledOnClass() {
  $entity = new Entity();
  $this->metadata
    ->addConstraint(new Traverse(true));
  $this->validator
    ->validate($entity);
}