public static function spyGlobal(
        string $function,
        string $namespace
    ): SpyVerifier {
        $container = self::$globals::$container;

        return $container->spyVerifierFactory
            ->createGlobal($function, $namespace);
    }