public static function spy()
    {
        if (! static::isMock()) {
            $class = static::getMockableClass();

            return tap($class ? Mockery::spy($class) : Mockery::spy(), function ($spy) {
                static::swap($spy);
            });
        }
    }
public static function spy()
    {
        if (! static::isMock()) {
            $class = static::getMockableClass();

            return tap($class ? Mockery::spy($class) : Mockery::spy(), function ($spy) {
                static::swap($spy);
            });
        }
    }
public static function spy ( ) { if ( ! static :: isMock ( ) ) { $ class = static :: getMockableClass ( ) ; return tap ( $ class ? Mockery :: spy ( $ class ) : Mockery :: spy ( ) , function ( $ spy ) { static :: swap ( $ spy ) ; } ) ; } }
Convert the facade into a Mockery spy.

@return \Mockery\MockInterface
Convert the facade into a Mockery spy .