public function PropertyMetadataTest::testGetPropertyValueFromOverriddenPrivateProperty in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Mapping/ PropertyMetadataTest.php, line 37
Class
Namespace
Symfony\Component\Validator\Tests\MappingCode
public function testGetPropertyValueFromOverriddenPrivateProperty() {
$entity = new Entity('foobar');
$metadata = new PropertyMetadata(self::PARENTCLASS, 'data');
$this
->assertTrue($metadata
->isPublic($entity));
$this
->assertEquals('Overridden data', $metadata
->getPropertyValue($entity));
}