| Total Complexity | 1 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class MockHttpClient implements HttpClient |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Returns the content fetched from a given URL. |
||
| 14 | * |
||
| 15 | * @param string $url |
||
| 16 | * |
||
| 17 | * @return string Retrieved content |
||
| 18 | * @throws HttpClientException If an errors occurs while fetching the content from a given URL |
||
| 19 | * |
||
| 20 | */ |
||
| 21 | public function getContent(string $url): string |
||
| 26 |