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.

CountriesTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testShow() 0 8 1
A testIndex() 0 9 2
1
<?php
2
3
namespace NStack\Tests;
4
5
use NStack\Clients\CountriesClient;
6
use NStack\Models\Country;
7
8
class CountriesTest extends TestCase
9
{
10
    public function testIndex()
11
    {
12
        $client = $this->getClientWithMockedGet('countries-index.json');
13
14
        $client = new CountriesClient($this->getConfig(), $client);
15
        $list = $client->index();
16
17
        foreach ($list as $continent) {
18
            $this->assertInstanceOf(Country::class, $continent);
19
        }
20
    }
21
22
    public function testShow()
23
    {
24
        $client = $this->getClientWithMockedGet('countries-show.json');
25
26
        $client = new CountriesClient($this->getConfig(), $client);
27
        $entry = $client->show(1);
28
29
        $this->assertInstanceOf(Country::class, $entry);
30
    }
31
}
32