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

LanguageTest   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
c 1
b 0
f 0
dl 0
loc 23
rs 10
wmc 4

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testResourceIndex() 0 9 2
A testResourceSearch() 0 9 2
1
<?php
2
3
namespace NStack\Tests;
4
5
use NStack\Clients\LanguagesClient;
6
use NStack\Models\Language;
7
8
class LanguageTest extends TestCase
9
{
10
    public function testResourceIndex()
11
    {
12
        $client = $this->getClientWithMockedGet('languages-index.json');
13
14
        $client = new LanguagesClient($this->getConfig(), $client);
15
        $list = $client->index();
16
17
        foreach ($list as $language) {
18
            $this->assertInstanceOf(Language::class, $language);
19
        }
20
    }
21
22
    public function testResourceSearch()
23
    {
24
        $client = $this->getClientWithMockedGet('languages-search.json');
25
26
        $client = new LanguagesClient($this->getConfig(), $client);
27
        $list = $client->search("br");
28
29
        foreach ($list as $language) {
30
            $this->assertInstanceOf(Language::class, $language);
31
        }
32
    }
33
}
34