GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

ReverseQueryTest::testToString()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 15
rs 9.4285
cc 1
eloc 12
nc 1
nop 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\Tests;
12
13
use Geocoder\Query\ReverseQuery;
14
use PHPUnit\Framework\TestCase;
15
16
/**
17
 * @author Tobias Nyholm <[email protected]>
18
 */
19
class ReverseQueryTest extends TestCase
20
{
21
    public function testToString()
22
    {
23
        $query = ReverseQuery::fromCoordinates(1, 2);
24
        $query = $query->withLocale('en');
25
        $query = $query->withLimit(3);
26
        $query = $query->withData('name', 'value');
27
28
        $string = $query->__toString();
29
        $this->assertContains('ReverseQuery', $string);
30
        $this->assertContains('"lat":1', $string);
31
        $this->assertContains('"lng":2', $string);
32
        $this->assertContains('"locale":"en"', $string);
33
        $this->assertContains('"limit":3', $string);
34
        $this->assertContains('"name":"value"', $string);
35
    }
36
}
37