Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | private function mockHttpClient(string $responseBody = ''): HttpClientInterface |
||
13 | { |
||
14 | $response = $this->createMock(ResponseInterface::class); |
||
|
|||
15 | $response->method('getContent')->willReturn($responseBody); |
||
16 | |||
17 | $httpClient = $this->createMock(HttpClientInterface::class); |
||
18 | $httpClient->method('request')->willReturn($response); |
||
19 | |||
20 | return $httpClient; |
||
21 | } |
||
23 |