Neos\Flow\Tests\Unit\Reflection\PropertyReflectionTest::getValueEvenReturnsValueOfAProtectedProperty PHP Method

getValueEvenReturnsValueOfAProtectedProperty() public method

    public function getValueEvenReturnsValueOfAProtectedProperty()
    {
        $reflectionProperty = new Reflection\PropertyReflection(__CLASS__, 'protectedProperty');
        $this->assertEquals('abc', $reflectionProperty->getValue($this), 'ReflectionProperty->getValue($this) did not return the value of a protected property.');
        $this->protectedProperty = 'def';
        $this->assertEquals('def', $reflectionProperty->getValue($this), 'ReflectionProperty->getValue($this) did not return "def".');
    }