You are here

public function GetterMetadataTest::testGetPropertyValueFromPublicGetter in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Mapping/GetterMetadataTest.php, line 28

Class

GetterMetadataTest

Namespace

Symfony\Component\Validator\Tests\Mapping

Code

public function testGetPropertyValueFromPublicGetter() {

  // private getters don't work yet because ReflectionMethod::setAccessible()
  // does not exist yet in a stable PHP release
  $entity = new Entity('foobar');
  $metadata = new GetterMetadata(self::CLASSNAME, 'internal');
  $this
    ->assertEquals('foobar from getter', $metadata
    ->getPropertyValue($entity));
}