You are here

public function MemberMetadataTest::testAddOtherConstraintDoesNotSetMemberToCascaded in Plug 7

File

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

Class

MemberMetadataTest

Namespace

Symfony\Component\Validator\Tests\Mapping

Code

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