| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 21 | public function testSendGetRequestException(int $httpCode): void |
||
| 22 | { |
||
| 23 | // setup |
||
| 24 | $client = new TestClient('http://ya.ru'); |
||
| 25 | $client->httpCode = $httpCode; |
||
| 26 | |||
| 27 | // assertions |
||
| 28 | $this->expectException(\Exception::class); |
||
| 29 | |||
| 30 | // test body |
||
| 31 | $client->sendGetRequest('/end-point/'); |
||
| 32 | } |
||
| 34 |