IntegrationTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 11
c 2
b 1
f 0
dl 0
loc 28
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getApiKey() 0 2 1
A getCacheDir() 0 3 1
A createProvider() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the Geocoder package.
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @license    MIT License
9
 */
10
11
namespace Geocoder\Provider\Addok\Tests;
12
13
use Geocoder\IntegrationTest\ProviderIntegrationTest;
14
use Geocoder\Provider\Addok\Addok;
15
use Http\Client\HttpClient;
16
17
class IntegrationTest extends ProviderIntegrationTest
18
{
19
    protected $testAddress = true;
20
21
    protected $testReverse = true;
22
23
    protected $testIpv4 = false;
24
25
    protected $testIpv6 = false;
26
27
    protected $skippedTests = [
28
        'testGeocodeQuery'              => 'BAN Server supports France only.',
29
        'testReverseQuery'              => 'BAN Server supports France only.',
30
        'testReverseQueryWithNoResults' => 'Addok returns "debug" information for reverse geocoding on coordinates 0, 0. See https://github.com/addok/addok/issues/505',
31
    ];
32
33
    protected function createProvider(HttpClient $httpClient)
34
    {
35
        return Addok::withBANServer($httpClient);
36
    }
37
38
    protected function getCacheDir()
39
    {
40
        return __DIR__.'/.cached_responses';
41
    }
42
43
    protected function getApiKey()
44
    {
45
    }
46
}
47