ShortifyPunit\ShortifyPunit::__callStatic PHP 메소드

__callStatic() 공개 정적인 메소드

Call static function is used to detect calls to protected & private methods
public static __callStatic ( $name, $arguments ) : mixed
$name
$arguments
리턴 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);
    }