| Total Complexity | 2 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class UnitTestCase extends TestCase |
||
| 11 | { |
||
| 12 | |||
| 13 | public function mockGuzzle(array $responses) |
||
| 14 | { |
||
| 15 | $mock = new MockHandler($responses); |
||
| 16 | $handler = HandlerStack::create($mock); |
||
| 17 | return new GuzzleClient(['handler' => $handler]); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function getClient($responses = []) |
||
| 23 | } |
||
| 24 | |||
| 25 | } |