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