public function MemberMetadataTest::testLegacyAddOtherConstraintDoesNotSetMemberToCascaded in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/validator/Tests/Mapping/MemberMetadataTest.php \Symfony\Component\Validator\Tests\Mapping\MemberMetadataTest::testLegacyAddOtherConstraintDoesNotSetMemberToCascaded()
@group legacy
File
- vendor/
symfony/ validator/ Tests/ Mapping/ MemberMetadataTest.php, line 53
Class
Namespace
Symfony\Component\Validator\Tests\MappingCode
public function testLegacyAddOtherConstraintDoesNotSetMemberToCascaded() {
$result = $this->metadata
->addConstraint($constraint = new ConstraintA());
$this
->assertEquals(array(
$constraint,
), $this->metadata
->getConstraints());
$this
->assertEquals($result, $this->metadata);
$this
->assertFalse($this->metadata
->isCascaded());
}