| 1 | <?php |
||
| 20 | class IntegrationTest extends ProviderIntegrationTest |
||
| 21 | { |
||
| 22 | protected $skippedTests = [ |
||
| 23 | 'testGeocodeQuery' => 'Bing classifies this as Landmarks. They do not have addresses. ', |
||
| 24 | ]; |
||
| 25 | |||
| 26 | protected $testIpv4 = false; |
||
| 27 | |||
| 28 | protected $testIpv6 = false; |
||
| 29 | |||
| 30 | protected function createProvider(HttpClient $httpClient) |
||
| 34 | |||
| 35 | protected function getCacheDir() |
||
| 39 | |||
| 40 | protected function getApiKey() |
||
| 44 | } |
||
| 45 |
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: