public static createGeneratorSpy ( Eloquent\Phony\Call\Call $call, Generator $generator, CallEventFactory $callEventFactory, boolean $isGeneratorImplicitNextSupported ) : Generator |
$call |
Eloquent\Phony\Call\Call |
The call from which the generator originated. |
$generator |
Generator |
The generator. |
$callEventFactory |
Eloquent\Phony\Call\Event\CallEventFactory |
The call event factory to use. |
$isGeneratorImplicitNextSupported |
boolean |
True if implicit generator next() behavior is supported. |
return |
Generator |
The newly created generator spy. |