Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class IntegrationTest extends ProviderIntegrationTest |
||
21 | { |
||
22 | protected $testAddress = true; |
||
23 | |||
24 | protected $testReverse = true; |
||
25 | |||
26 | protected $testIpv4 = false; |
||
27 | |||
28 | protected $testIpv6 = false; |
||
29 | |||
30 | protected $skippedTests = [ |
||
31 | 'testGeocodeQuery' => 'Photon API returns "Great George Street" for "10 Downing St, London, UK" query.', |
||
32 | 'testReverseQueryWithNoResults' => 'Photon API returns "Atlas Buoy 0.00E 0.00N" for reverse query at 0,0.', |
||
33 | ]; |
||
34 | |||
35 | protected function createProvider(HttpClient $httpClient) |
||
36 | { |
||
37 | return Photon::withKomootServer($httpClient, 'Geocoder PHP/Photon Provider/Integration Test'); |
||
|
|||
38 | } |
||
39 | |||
40 | protected function getCacheDir() |
||
43 | } |
||
44 | |||
45 | protected function getApiKey() |
||
50 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.