You are here

public function ClassMetadataTest::testAddConstraintRequiresClassConstraints in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Mapping/ClassMetadataTest.php, line 46

Class

ClassMetadataTest

Namespace

Symfony\Component\Validator\Tests\Mapping

Code

public function testAddConstraintRequiresClassConstraints() {
  $this
    ->setExpectedException('Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException');
  $this->metadata
    ->addConstraint(new PropertyConstraint());
}