You are here

public function PropertyMetadataTest::testGetPropertyValueFromOverriddenPrivateProperty in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Mapping/PropertyMetadataTest.php \Symfony\Component\Validator\Tests\Mapping\PropertyMetadataTest::testGetPropertyValueFromOverriddenPrivateProperty()

File

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