Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | protected function getClientWithMockedGet(string $filename): Client |
||
33 | { |
||
34 | $response = new Response(200, ['Content-Type' => 'application/json'], |
||
35 | $this->getMockAsString($filename)); |
||
36 | |||
37 | $guzzle = \Mockery::mock(\GuzzleHttp\Client::class); |
||
38 | $guzzle->shouldReceive('get')->once()->andReturn($response); |
||
39 | |||
40 | return $guzzle; |
||
|
|||
41 | } |
||
66 |