| 1 | <?php |
||
| 24 | class IntegrationTest extends ProviderIntegrationTest |
||
| 25 | { |
||
| 26 | protected $testAddress = false; |
||
| 27 | protected $testReverse = false; |
||
| 28 | protected $testIpv6 = false; |
||
| 29 | protected $testHttpProvider = false; |
||
| 30 | |||
| 31 | protected function createProvider(HttpClient $httpClient) |
||
| 32 | { |
||
| 33 | $reader = new Reader(__DIR__.'/fixtures/GeoLite2-City.mmdb'); |
||
| 34 | |||
| 35 | return new GeoIP2(new GeoIP2Adapter($reader)); |
||
| 36 | } |
||
| 37 | |||
| 38 | protected function getCacheDir() |
||
| 39 | { |
||
| 40 | return __DIR__.'/.cached_responses'; |
||
| 41 | } |
||
| 42 | |||
| 43 | protected function getApiKey() |
||
| 44 | { |
||
| 45 | return null; |
||
| 46 | } |
||
| 47 | } |
||
| 48 |