IntegrationTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 12
c 1
b 0
f 0
dl 0
loc 29
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A createProvider() 0 3 1
A getCacheDir() 0 3 1
A getApiKey() 0 2 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\UrbIS\Tests;
12
13
use Geocoder\IntegrationTest\ProviderIntegrationTest;
14
use Geocoder\Provider\UrbIS\UrbIS;
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'              => 'UrbIS provider supports Brussels (Belgium) only.',
29
        'testReverseQuery'              => 'UrbIS provider supports Brussels (Belgium) only.',
30
        'testGeocodeQueryWithNoResults' => 'UrbIS provider returns "wrong" results!',
31
        'testReverseQueryWithNoResults' => 'UrbIS provider returns "wrong" results!',
32
    ];
33
34
    protected function createProvider(HttpClient $httpClient)
35
    {
36
        return new UrbIS($httpClient);
37
    }
38
39
    protected function getCacheDir()
40
    {
41
        return __DIR__.'/.cached_responses';
42
    }
43
44
    protected function getApiKey()
45
    {
46
    }
47
}
48