/** * @test */ public function setValueEvenSetsValueOfAPublicProperty() { $reflectionProperty = new Reflection\PropertyReflection(__CLASS__, 'publicProperty'); $reflectionProperty->setValue($this, 'modified'); $this->assertEquals('modified', $this->publicProperty, 'ReflectionProperty->setValue() did not successfully set the value of a public property.'); }