You are here

public function PropertyMetadataTest::testGetPropertyValueFromPrivateProperty 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::testGetPropertyValueFromPrivateProperty()

File

vendor/symfony/validator/Tests/Mapping/PropertyMetadataTest.php, line 29

Class

PropertyMetadataTest

Namespace

Symfony\Component\Validator\Tests\Mapping

Code

public function testGetPropertyValueFromPrivateProperty() {
  $entity = new Entity('foobar');
  $metadata = new PropertyMetadata(self::CLASSNAME, 'internal');
  $this
    ->assertEquals('foobar', $metadata
    ->getPropertyValue($entity));
}