You are here

public function MemberMetadataTest::testAddConstraintRequiresClassConstraints in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Mapping/MemberMetadataTest.php, line 56

Class

MemberMetadataTest

Namespace

Symfony\Component\Validator\Tests\Mapping

Code

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