Completed
Branch master (9e0c22)
by Tobias
45:10 queued 20:11
created

IntegrationTest::createProvider()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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\Ipstack\Tests;
14
15
use Geocoder\IntegrationTest\ProviderIntegrationTest;
16
use Geocoder\Provider\Ipstack\Ipstack;
17
use Http\Client\HttpClient;
18
19
/**
20
 * @author Jonas Gielen <[email protected]>
21
 */
22
class IntegrationTest extends ProviderIntegrationTest
23
{
24
    protected $testAddress = false;
25
26
    protected $testReverse = false;
27
28
    protected function createProvider(HttpClient $httpClient)
29
    {
30
        return new Ipstack($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['IPSTACK_API_KEY'];
41
    }
42
}
43