| 1 | <?php |
||
| 22 | class IntegrationTest extends ProviderIntegrationTest |
||
| 23 | { |
||
| 24 | protected $skippedTests = [ |
||
| 25 | 'testGeocodeQuery' => 'We get wrongs cords', |
||
| 26 | 'testReverseQueryWithNoResults' => 'We weirdly find stuff here...', |
||
| 27 | ]; |
||
| 28 | |||
| 29 | protected $testIpv4 = false; |
||
| 30 | protected $testIpv6 = false; |
||
| 31 | |||
| 32 | protected function createProvider(HttpClient $httpClient) |
||
| 33 | { |
||
| 34 | return new Mapzen($httpClient, $this->getApiKey()); |
||
| 35 | } |
||
| 36 | |||
| 37 | protected function getCacheDir() |
||
| 38 | { |
||
| 39 | return __DIR__.'/.cached_responses'; |
||
| 40 | } |
||
| 41 | |||
| 42 | protected function getApiKey() |
||
| 43 | { |
||
| 44 | return $_SERVER['MAPZEN_API_KEY']; |
||
| 45 | } |
||
| 46 | } |
||
| 47 |