ShortifyPunit\ShortifyPunit::__callStatic PHP Method

__callStatic() public static method

Call static function is used to detect calls to protected & private methods
public static __callStatic ( $name, $arguments ) : mixed
$name
$arguments
return mixed
    public static function __callStatic($name, $arguments)
    {
        $class = get_called_class();
        // protected shared methods has `_` prefix to identify
        $name = "_{$name}";
        if (!method_exists($class, $name)) {
            throw self::generateException("{$class} has no such method!");
        }
        return forward_static_call_array('static::' . $name, $arguments);
    }