You are here

public function Abstract2Dot5ApiTest::testExpectTraversableIfTraversalEnabledOnClass in Plug 7

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

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Validator/Abstract2Dot5ApiTest.php, line 418

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);
}