| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function itExecutesAPreparedRequest() |
||
| 26 | { |
||
| 27 | $client = new SomeClient(); |
||
| 28 | $client->prepareRequest('GET', 'http://example.com/api'); |
||
| 29 | |||
| 30 | $response = $client->execute(); |
||
| 31 | |||
| 32 | $this->assertSame(200, $response->getStatusCode()); |
||
| 33 | $this->assertSame(['key' => 'value'], $response->toJson()); |
||
| 34 | $this->assertSame(['Server' => 'Apache/2.4.38 (Debian)'], $response->getHeaders()); |
||
| 35 | } |
||
| 36 | } |