src/PHPUnit/Helper/Accessor.php
public function invokeStaticMethod($class, $name, array $args = [])
    {
        $method = new ReflectionMethod($class, $name);
        $method->setAccessible(true);

        if (empty($args)) {
            return $method->invoke(null);
        }

        return $method->invokeArgs(null, $args);
    }
public function invokeStaticMethod($class, $name, array $args = [])
    {
        $method = new ReflectionMethod($class, $name);
        $method->setAccessible(true);

        if (empty($args)) {
            return $method->invoke(null);
        }

        return $method->invokeArgs(null, $args);
    }
public function invokeStaticMethod ( $ class , $ name , array $ args = [ ] ) { $ method = new ReflectionMethod ( $ class , $ name ) ; $ method -> setAccessible ( true ) ; if ( empty ( $ args ) ) { return $ method -> invoke ( null ) ; } return $ method -> invokeArgs ( null , $ args ) ; }
Invoke a non-public static method

@param string $class
@param string $name
@param array  $args
@return mixed
Invoke a non - public static method