public/phpmyadmin/test/classes/ScriptsTest.php
/**
     * Call private functions by setting visibility to public.
     *
     * @param string $name   method name
     * @param array  $params parameters for the invocation
     *
     * @return the output from the private method.
     */
Call private functions by setting visibility to public.
@param string $name   method name
@param array  $params parameters for the invocation

@return the output from the private method.
Call private functions by setting visibility to public . @param string $name method name @param array $params parameters for the invocation @return the output from the private method .
private function _callPrivateFunction($name, $params)
    {
        $class = new ReflectionClass(Scripts::class);
        $method = $class->getMethod($name);
        $method->setAccessible(true);
        return $method->invokeArgs($this->object, $params);
    }
private function _callPrivateFunction ( $ name , $ params ) { $ class = new ReflectionClass ( Scripts :: class ) ; $ method = $ class -> getMethod ( $ name ) ; $ method -> setAccessible ( true ) ; return $ method -> invokeArgs ( $ this -> object , $ params ) ; }
Call private functions by setting visibility to public.
Call private functions by setting visibility to public .