PHP Class Eloquent\Phony\Spy\Detail\GeneratorSpyFactoryDetailPhp

Show file Open project: eloquent/phony Class Usage Examples

Public Methods

Method Description
createGeneratorSpy ( Eloquent\Phony\Call\Call $call, Generator $generator, CallEventFactory $callEventFactory ) : Generator Create a new generator spy.

Method Details

createGeneratorSpy() public static method

Create a new generator spy.
public static createGeneratorSpy ( Eloquent\Phony\Call\Call $call, Generator $generator, CallEventFactory $callEventFactory ) : 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.
return Generator The newly created generator spy.