| 1 | <?php |
||
| 22 | class IntegrationTest extends ProviderIntegrationTest |
||
| 23 | { |
||
| 24 | protected $skippedTests = [ |
||
| 25 | 'testReverseQueryWithNoResults' => 'Null island exists. ', |
||
| 26 | ]; |
||
| 27 | |||
| 28 | protected $testIpv4 = false; |
||
| 29 | |||
| 30 | protected $testIpv6 = false; |
||
| 31 | |||
| 32 | protected function createProvider(HttpClient $httpClient) |
||
| 36 | |||
| 37 | protected function getCacheDir() |
||
| 41 | |||
| 42 | protected function getApiKey() |
||
| 46 | } |
||
| 47 |
Instead of super-globals, we recommend to explicitly inject the dependencies of your class. This makes your code less dependent on global state and it becomes generally more testable: