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

callProtected() public method

public callProtected ( $obj, $name, array $args = [] )
$args array
    public function callProtected($obj, $name, array $args = [])
    {
        $class = new \ReflectionClass($obj);
        $method = $class->getMethod($name);
        $method->setAccessible(true);
        return $method->invokeArgs($obj, $args);
    }