IntegrationTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A createProvider() 0 3 1
A getCacheDir() 0 3 1
A getApiKey() 0 3 1
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\GoogleMapsPlaces\Tests;
14
15
use Geocoder\IntegrationTest\ProviderIntegrationTest;
16
use Geocoder\Provider\GoogleMapsPlaces\GoogleMapsPlaces;
17
use Http\Client\HttpClient;
18
19
/**
20
 * @author Tobias Nyholm <[email protected]>
21
 */
22
class IntegrationTest extends ProviderIntegrationTest
23
{
24
    protected $testAddress = false;
25
26
    protected $testReverse = false;
27
28
    protected $testIpv4 = false;
29
30
    protected $testIpv6 = false;
31
32
    protected function createProvider(HttpClient $httpClient)
33
    {
34
        return new GoogleMapsPlaces($httpClient, $_SERVER['GOOGLE_GEOCODING_KEY']);
35
    }
36
37
    protected function getCacheDir()
38
    {
39
        return __DIR__.'/.cached_responses';
40
    }
41
42
    protected function getApiKey()
43
    {
44
        return $_SERVER['GOOGLE_GEOCODING_KEY'];
45
    }
46
}
47