Completed
Branch master (8e77a6)
by Tobias
45:12 queued 20:15
created

IntegrationTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 3
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Geocoder package.
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license    MIT License
11
 */
12
13
namespace Geocoder\Provider\Mapbox\Tests;
14
15
use Geocoder\IntegrationTest\ProviderIntegrationTest;
16
use Geocoder\Provider\Mapbox\Mapbox;
17
use Http\Client\HttpClient;
18
19
/**
20
 * @author Tobias Nyholm <[email protected]>
21
 */
22
class IntegrationTest extends ProviderIntegrationTest
23
{
24
    protected $testIpv4 = false;
25
26
    protected $testIpv6 = false;
27
28
    protected function createProvider(HttpClient $httpClient)
29
    {
30
        return new Mapbox($httpClient, $this->getApiKey());
31
    }
32
33
    protected function getCacheDir()
34
    {
35
        return __DIR__.'/.cached_responses';
36
    }
37
38
    protected function getApiKey()
39
    {
40
        return $_SERVER['MAPBOX_GEOCODING_KEY'];
41
    }
42
}
43