Eloquent\Phony\Facade\AbstractFacade::spyGlobal PHP Метод

spyGlobal() публичный статический Метод

Create a spy of a function in the global namespace, and declare it as a function in another namespace.
public static spyGlobal ( string $function, string $namespace ) : SpyVerifier
$function string The name of the function in the global namespace.
$namespace string The namespace in which to create the new function.
Результат Eloquent\Phony\Spy\SpyVerifier The new spy.
    public static function spyGlobal($function, $namespace)
    {
        return static::driver()->spyVerifierFactory->createGlobal($function, $namespace);
    }