public function ClassMetadataTest::testAddPropertyConstraints in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Mapping/ ClassMetadataTest.php, line 53
Class
Namespace
Symfony\Component\Validator\Tests\MappingCode
public function testAddPropertyConstraints() {
$this->metadata
->addPropertyConstraint('firstName', new ConstraintA());
$this->metadata
->addPropertyConstraint('lastName', new ConstraintB());
$this
->assertEquals(array(
'firstName',
'lastName',
), $this->metadata
->getConstrainedProperties());
}