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

IpAddressesTest::testShow()   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\ContinentsClient;
6
use NStack\Clients\CountriesClient;
7
use NStack\Clients\IpAddressesClient;
8
use NStack\Models\Continent;
9
use NStack\Models\Country;
10
use NStack\Models\IpAddress;
11
12
class IpAddressesTest extends TestCase
13
{
14
    public function testIndex()
15
    {
16
        $client = $this->getClientWithMockedGet('ip-addresses-index.json');
17
18
        $client = new IpAddressesClient($this->getConfig(), $client);
19
        $entry = $client->index();
20
21
        $this->assertInstanceOf(IpAddress::class, $entry);
22
    }
23
24
    public function testShow()
25
    {
26
        $client = $this->getClientWithMockedGet('ip-addresses-show.json');
27
28
        $client = new IpAddressesClient($this->getConfig(), $client);
29
        $entry = $client->show("0.0.0.0");
30
31
        $this->assertInstanceOf(IpAddress::class, $entry);
32
    }
33
}
34