1 | <?php |
||
21 | class MockHttpAdapter extends AbstractHttpAdapter |
||
22 | { |
||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | private $queuedResponses = []; |
||
27 | |||
28 | /** |
||
29 | * @var array |
||
30 | */ |
||
31 | private $receivedRequests = []; |
||
32 | |||
33 | 9 | public function reset() |
|
38 | |||
39 | /** |
||
40 | * @return array |
||
41 | */ |
||
42 | 27 | public function getReceivedRequests() |
|
46 | |||
47 | /** |
||
48 | * @return array |
||
49 | */ |
||
50 | 36 | public function getQueuedResponses() |
|
54 | |||
55 | /** |
||
56 | * @param ResponseInterface $response |
||
57 | */ |
||
58 | 27 | public function appendResponse(ResponseInterface $response) |
|
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | 9 | public function getName() |
|
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | 27 | protected function sendInternalRequest(InternalRequestInterface $internalRequest) |
|
84 | } |
||
85 |