| 1 | <?php |
||
| 22 | class IntegrationTest extends ProviderIntegrationTest |
||
| 23 | { |
||
| 24 | protected $testAddress = false; |
||
| 25 | |||
| 26 | protected $testReverse = 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: