geocoder-php/provider-integration-tests
最新稳定版本:1.6.4
Composer 安装命令:
composer require geocoder-php/provider-integration-tests
包简介
Integration tests Geocoder provider
关键字:
README 文档
README
This repository contains integration tests to make sure your implementation of a Geocoder Provider is correct.
Install
composer require --dev geocoder-php/provider-integration-tests:dev-master
Use
Create a test that looks like this:
use Geocoder\IntegrationTest\ProviderIntegrationTest; use Geocoder\Provider\GoogleMaps\GoogleMaps; use Psr\Http\Client\ClientInterface; class IntegrationTest extends ProviderIntegrationTest { protected function createProvider(ClientInterface $httpClient) { return new GoogleMaps($httpClient); } protected function getCacheDir(): string; { return dirname(__DIR__).'/.cached_responses'; } protected function getApiKey(): string; { return env('GOOGLE_API_KEY'); } }
统计信息
- 总下载量: 190.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 65
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-15