atk4\data\tests\TestCase::getProtected PHP Method

getProtected() public method

public getProtected ( $obj, $name )
    public function getProtected($obj, $name)
    {
        $class = new \ReflectionClass($obj);
        $method = $class->getProperty($name);
        $method->setAccessible(true);
        return $method->getValue($obj);
    }