original_string: public static function spy()
      {
          if (! static::isMock()) {
              $class = static::getMockableClass();
  
              return tap($class ? Mockery::spy($class) : Mockery::spy(), function ($spy) {
                  static::swap($spy);
              });
          }
      }
code: public static function spy()
      {
          if (! static::isMock()) {
              $class = static::getMockableClass();
  
              return tap($class ? Mockery::spy($class) : Mockery::spy(), function ($spy) {
                  static::swap($spy);
              });
          }
      }
code_tokens: public static function spy ( ) { if ( ! static :: isMock ( ) ) { $ class = static :: getMockableClass ( ) ; return tap ( $ class ? Mockery :: spy ( $ class ) : Mockery :: spy ( ) , function ( $ spy ) { static :: swap ( $ spy ) ; } ) ; } }
docstring: Convert the facade into a Mockery spy.
  
  @return \Mockery\MockInterface
docstring_tokens: Convert the facade into a Mockery spy .