src/PHPUnit/Helper/Accessor.php
public function getPropertyValue($object, $name)
    {
        $property = new ReflectionProperty($object, $name);
        $property->setAccessible(true);
        return $property->getValue($object);
    }
public function getPropertyValue($object, $name)
    {
        $property = new ReflectionProperty($object, $name);
        $property->setAccessible(true);
        return $property->getValue($object);
    }
public function getPropertyValue ( $ object , $ name ) { $ property = new ReflectionProperty ( $ object , $ name ) ; $ property -> setAccessible ( true ) ; return $ property -> getValue ( $ object ) ; }
Get the value of a non-public property.

@param object $object
@param string $name
@return mixed
Get the value of a non - public property .