You are here

public function ClassMetadataTest::testAddConstraintDoesNotAcceptValid in Plug 7

File

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

Class

ClassMetadataTest

Namespace

Symfony\Component\Validator\Tests\Mapping

Code

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