public function testGetPropertyValue() { $class = new TestClass(); $this->assertNull($class->getTestProperty()); $this->assertNull(ReflectionClass::from($class)->getPropertyValue('test_property')); $class->setTestProperty('foo'); $this->assertSame('foo', ReflectionClass::from($class)->getPropertyValue('test_property')); }