[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch




/vendor/guzzlehttp/guzzle/src/Subscriber/ -> Mock.php (summary)

(no description)

File Size: 147 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Mock:: (8 methods):

Class: Mock  - X-Ref

Queues mock responses or exceptions and delivers mock responses or
exceptions in a fifo order.

__construct(array $items = [], $readBodies = true)   X-Ref

param: array $items      Array of responses or exceptions to queue
param: bool  $readBodies Set to false to not consume the entity body of

getEvents()   X-Ref
No description

onBefore(BeforeEvent $event)   X-Ref

count()   X-Ref
No description

addResponse($response)   X-Ref
Add a response to the end of the queue

param: string|ResponseInterface $response Response or path to response file
return: self

addException(RequestException $e)   X-Ref
Add an exception to the end of the queue

param: RequestException $e Exception to throw when the request is executed
return: self

addMultiple(array $items)   X-Ref
Add multiple items to the queue

param: array $items Items to add

clearQueue()   X-Ref
Clear the queue

Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1