| 1 | <?php |
||
| 22 | class IntegrationTest extends ProviderIntegrationTest |
||
| 23 | { |
||
| 24 | protected $testAddress = false; |
||
| 25 | protected $testReverse = false; |
||
| 26 | protected $testIpv6 = false; |
||
| 27 | |||
| 28 | protected function createProvider(HttpClient $httpClient) |
||
| 29 | { |
||
| 30 | return new GeoIPs($httpClient, $this->getApiKey()); |
||
| 31 | } |
||
| 32 | |||
| 33 | protected function getCacheDir() |
||
| 34 | { |
||
| 35 | return __DIR__.'/.cached_responses'; |
||
| 36 | } |
||
| 37 | |||
| 38 | protected function getApiKey() |
||
| 39 | { |
||
| 40 | return $_SERVER['GEOIPS_API_KEY']; |
||
| 41 | } |
||
| 42 | } |
||
| 43 |