public function MemberMetadataTest::testAddConstraintRequiresClassConstraints in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Mapping/ MemberMetadataTest.php, line 56
Class
Namespace
Symfony\Component\Validator\Tests\MappingCode
public function testAddConstraintRequiresClassConstraints() {
$this
->setExpectedException('Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException');
$this->metadata
->addConstraint(new ClassConstraint());
}