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