public function MemberMetadataTest::testAddConstraintRequiresClassConstraints in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/validator/Tests/Mapping/MemberMetadataTest.php \Symfony\Component\Validator\Tests\Mapping\MemberMetadataTest::testAddConstraintRequiresClassConstraints()
File
- vendor/
symfony/ validator/ Tests/ Mapping/ MemberMetadataTest.php, line 62
Class
Namespace
Symfony\Component\Validator\Tests\MappingCode
public function testAddConstraintRequiresClassConstraints() {
$this
->setExpectedException('Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException');
$this->metadata
->addConstraint(new ClassConstraint());
}