public function ClassMetadataTest::testMemberMetadatas in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Tests/Mapping/ClassMetadataTest.php \Symfony\Component\Validator\Tests\Mapping\ClassMetadataTest::testMemberMetadatas()
File
- vendor/
symfony/ validator/ Tests/ Mapping/ ClassMetadataTest.php, line 160
Class
Namespace
Symfony\Component\Validator\Tests\MappingCode
public function testMemberMetadatas() {
$this->metadata
->addPropertyConstraint('firstName', new ConstraintA());
$this
->assertTrue($this->metadata
->hasPropertyMetadata('firstName'));
$this
->assertFalse($this->metadata
->hasPropertyMetadata('non_existent_field'));
}