public function AbstractValidatorTest::testMetadataMustExistIfTraversalIsDisabled in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Tests/Validator/AbstractValidatorTest.php \Symfony\Component\Validator\Tests\Validator\AbstractValidatorTest::testMetadataMustExistIfTraversalIsDisabled()
@expectedException \Symfony\Component\Validator\Exception\NoSuchMetadataException
File
- vendor/
symfony/ validator/ Tests/ Validator/ AbstractValidatorTest.php, line 736
Class
- AbstractValidatorTest
- @since 2.5
Namespace
Symfony\Component\Validator\Tests\ValidatorCode
public function testMetadataMustExistIfTraversalIsDisabled() {
$entity = new Entity();
$entity->reference = new \ArrayIterator();
$this->metadata
->addPropertyConstraint('reference', new Valid(array(
'traverse' => false,
)));
$this
->validate($entity);
}