public function MemberMetadataTest::testAddOtherConstraintDoesNotSetMemberToCascaded in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Mapping/ MemberMetadataTest.php, line 47
Class
Namespace
Symfony\Component\Validator\Tests\MappingCode
public function testAddOtherConstraintDoesNotSetMemberToCascaded() {
$result = $this->metadata
->addConstraint($constraint = new ConstraintA());
$this
->assertEquals(array(
$constraint,
), $this->metadata
->getConstraints());
$this
->assertEquals($result, $this->metadata);
$this
->assertFalse($this->metadata
->isCascaded());
}