You are here

public function PropertyMetadataTest::testGetPropertyValueFromOverriddenPrivateProperty in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Mapping/PropertyMetadataTest.php, line 37

Class

PropertyMetadataTest

Namespace

Symfony\Component\Validator\Tests\Mapping

Code

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