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