DbSearchTest::_callProtectedFunction PHP Метод

_callProtectedFunction() приватный Метод

Call protected functions by setting visibility to public.
private _callProtectedFunction ( string $name, array $params ) : the
$name string method name
$params array parameters for the invocation
Результат the output from the protected method.
    private function _callProtectedFunction($name, $params)
    {
        $class = new ReflectionClass('PMA\\libraries\\DbSearch');
        $method = $class->getMethod($name);
        $method->setAccessible(true);
        return $method->invokeArgs($this->object, $params);
    }