Eloquent\Phony\Facade\AbstractFacade::spy PHP Method

spy() public static method

Create a new spy.
public static spy ( callable | null $callback = null ) : SpyVerifier
$callback callable | null The callback, or null to create an anonymous spy.
return Eloquent\Phony\Spy\SpyVerifier The new spy.
    public static function spy($callback = null)
    {
        return static::driver()->spyVerifierFactory->createFromCallback($callback);
    }