Completed
Push — master ( 9d8ad0...f4d740 )
by Tobias
03:22
created

IntegrationTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 24
rs 10
c 0
b 0
f 0
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\BingMaps\Tests;
12
13
use Geocoder\IntegrationTest\ProviderIntegrationTest;
14
use Geocoder\Provider\BingMaps\BingMaps;
15
use Http\Client\HttpClient;
16
17
/**
18
 * @author Tobias Nyholm <[email protected]>
19
 */
20
class IntegrationTest extends ProviderIntegrationTest
21
{
22
    protected $skippedTests = [
23
        'testGeocodeQuery' => 'Bing classifies this as Landmarks. They do not have addresses. ',
24
    ];
25
26
    protected $testIpv4 = false;
27
    protected $testIpv6 = false;
28
29
    protected function createProvider(HttpClient $httpClient)
30
    {
31
        return new BingMaps($httpClient, $this->getApiKey());
32
    }
33
34
    protected function getCacheDir()
35
    {
36
        return __DIR__.'/.cached_responses';
37
    }
38
39
    protected function getApiKey()
40
    {
41
        return $_SERVER['BINGMAPS_API_KEY'];
42
    }
43
}
44