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.
Failed Conditions
Branch master (37a03c)
by Casper
02:30
created

TimezonesTest::testByLatLng()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 8
rs 10
1
<?php
2
3
namespace NStack\Tests;
4
5
use NStack\Clients\CountriesClient;
6
use NStack\Clients\TimezoneClient;
7
use NStack\Models\Country;
8
use NStack\Models\Timezone;
9
10
class TimezonesTest extends TestCase
11
{
12
    public function testIndex()
13
    {
14
        $client = $this->getClientWithMockedGet('timezones-index.json');
15
16
        $client = new TimezoneClient($this->getConfig(), $client);
17
        $list = $client->index();
18
19
        foreach ($list as $continent) {
20
            $this->assertInstanceOf(Timezone::class, $continent);
21
        }
22
    }
23
24
    public function testShow()
25
    {
26
        $client = $this->getClientWithMockedGet('timezones-show.json');
27
28
        $client = new TimezoneClient($this->getConfig(), $client);
29
        $entry = $client->show(240);
30
31
        $this->assertInstanceOf(Timezone::class, $entry);
32
    }
33
34
    public function testByLatLng()
35
    {
36
        $client = $this->getClientWithMockedGet('timezones-lat-lng.json');
37
38
        $client = new TimezoneClient($this->getConfig(), $client);
39
        $entry = $client->showByLatLng(55.1231, 12.1231);
40
41
        $this->assertInstanceOf(Timezone::class, $entry);
42
    }
43
}
44