| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | abstract class ApiTestCase extends TestCase implements StatusCodeInterface, RequestMethodInterface |
||
| 13 | { |
||
| 14 | /** @var ClientInterface */ |
||
| 15 | private static $client; |
||
| 16 | |||
| 17 | public static function setApiClient(ClientInterface $client): void |
||
| 18 | { |
||
| 19 | self::$client = $client; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
| 24 | */ |
||
| 25 | protected function callApi(string $method, string $uri, array $options = []): ResponseInterface |
||
| 28 | } |
||
| 29 | } |
||
| 30 |