src/Facade/FacadeTrait.php
public static function spyGlobal(
        string $function,
        string $namespace
    ): SpyVerifier {
        $container = self::$globals::$container;

        return $container->spyVerifierFactory
            ->createGlobal($function, $namespace);
    }
public static function spyGlobal(
        string $function,
        string $namespace
    ): SpyVerifier {
        $container = self::$globals::$container;

        return $container->spyVerifierFactory
            ->createGlobal($function, $namespace);
    }
public static function spyGlobal ( string $ function , string $ namespace ) : SpyVerifier { $ container = self :: $ globals :: $ container ; return $ container -> spyVerifierFactory -> createGlobal ( $ function , $ namespace ) ; }
Create a spy of a function in the global namespace, and declare it as a
function in another namespace.

@param string $function  The name of the function in the global namespace.
@param string $namespace The namespace in which to create the new function.

@return SpyVerifier The new spy.
Create a spy of a function in the global namespace and declare it as a function in another namespace .