You are here

public function MemberMetadataTest::testAddValidSetsMemberToCascaded in Plug 7

File

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

Class

MemberMetadataTest

Namespace

Symfony\Component\Validator\Tests\Mapping

Code

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());
}