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