Integration tests Geocoder provider

1.5.0 2020-12-18 16:29 UTC

This package is auto-updated.

Last update: 2021-10-18 18:09:57 UTC


Latest Stable Version Total Downloads Monthly Downloads Software License

This repository contains integration tests to make sure your implementation of a Geocoder Provider is correct.


composer require --dev geocoder-php/provider-integration-tests:dev-master


Create a test that looks like this:

use Http\Client\HttpClient;
use Geocoder\IntegrationTest\ProviderIntegrationTest;
use Geocoder\Provider\GoogleMaps\GoogleMaps;

class IntegrationTest extends ProviderIntegrationTest
    protected function createProvider(HttpClient $httpClient)
        return new GoogleMaps($httpClient);
    protected function getCacheDir()
        return dirname(__DIR__).'/.cached_responses';

    protected function getApiKey()
        return env('GOOLE_API_KEY');