public testCastingToString ( string $propertyName, string $expectedString ) | ||
$propertyName | string | |
$expectedString | string |
public function testCastingToString($propertyName, $expectedString)
{
$classInfo = $this->reflector->reflect('\\BetterReflectionTest\\Fixture\\ExampleClass');
$this->assertSame($expectedString, (string) $classInfo->getProperty($propertyName));
}