承接 geocoder-php/provider-integration-tests 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

geocoder-php/provider-integration-tests

最新稳定版本:1.6.4

Composer 安装命令:

composer require geocoder-php/provider-integration-tests

包简介

Integration tests Geocoder provider

README 文档

README

Build Status 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.

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

GitHub 信息

  • Stars: 0
  • Watchers: 5
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-05-15