src/Spy/GeneratorSpyFactory.php
public function create(Call $call, Generator $generator): Generator
    {
        $spy = $this->createSpy($call, $generator);
        $spy->_phonySubject = $generator;

        return $spy;
    }
public function create(Call $call, Generator $generator): Generator
    {
        $spy = $this->createSpy($call, $generator);
        $spy->_phonySubject = $generator;

        return $spy;
    }
public function create ( Call $ call , Generator $ generator ) : Generator { $ spy = $ this -> createSpy ( $ call , $ generator ) ; $ spy -> _phonySubject = $ generator ; return $ spy ; }
Create a new generator spy.

@param Call      $call      The call from which the generator originated.
@param Generator $generator The generator.

@return Generator The newly created generator spy.
Create a new generator spy .