| 1 | <?php | ||
| 22 | class IntegrationTest extends ProviderIntegrationTest | ||
| 23 | { | ||
| 24 | protected $skippedTests = [ | ||
| 25 | 'testReverseQueryWithNoResults' => 'There is a null island', | ||
| 26 | ]; | ||
| 27 | |||
| 28 | protected $testIpv4 = false; | ||
| 29 | protected $testIpv6 = false; | ||
| 30 | |||
| 31 | protected function createProvider(HttpClient $httpClient) | ||
| 32 |     { | ||
| 33 | return new OpenCage($httpClient, $this->getApiKey()); | ||
| 34 | } | ||
| 35 | |||
| 36 | protected function getCacheDir() | ||
| 37 |     { | ||
| 38 | return __DIR__.'/.cached_responses'; | ||
| 39 | } | ||
| 40 | |||
| 41 | protected function getApiKey() | ||
| 42 |     { | ||
| 43 | return $_SERVER['OPENCAGE_API_KEY']; | ||
| 44 | } | ||
| 45 | } | ||
| 46 |