publicfunctiontestMustBeIssuedByMockHttpClient() { $this->expectException(InvalidArgumentException::class); $this->expectExceptionMessage('MockResponse instances must be issued by MockHttpClient before processing.');
publicfunctionreset(): void { if(null !== $this->currentResponse){ // fetch current response in order to requeue in transit messages
if(!$this->fetchMessage()){ $this->currentResponse->cancel(); $this->currentResponse = null; } }
/**
* Resolves pending promises that complete before the timeouts are reached.
*
* When $maxDuration is null and $idleTimeout is reached, promises are rejected.
*
* @return int The number of remaining pending promises
*/