public function PropertyMetadataTest::testGetPropertyValueFromOverriddenPrivateProperty

File

drupal/core/vendor/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));
}