Create a new generator spy.
public static createGeneratorSpy ( Eloquent\Phony\Call\Call $call, Generator $generator, |
||
$call | Eloquent\Phony\Call\Call | The call from which the generator originated. |
$generator | Generator | The generator. |
$callEventFactory | The call event factory to use. | |
$isGeneratorImplicitNextSupported | boolean | True if implicit generator next() behavior is supported. |
Результат | Generator | The newly created generator spy. |