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.
Completed
Push — 4.2-to-master ( ed215f )
by E
06:47
created

ElementsTest::testGetAll()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace ApiGen\Parser\Tests\Elements;
4
5
use ApiGen\Parser\Elements\Elements;
6
use PHPUnit\Framework\TestCase;
7
8
class ElementsTest extends TestCase
9
{
10
    /**
11
     * @var Elements
12
     */
13
    private $elements;
14
15
    protected function setUp(): void
16
    {
17
        $this->elements = new Elements;
18
    }
19
20
    public function testGetClassTypeList(): void
21
    {
22
        $this->assertSame(
23
            ['classes', 'exceptions', 'interfaces', 'traits'],
24
            $this->elements->getClassTypeList()
25
        );
26
    }
27
28
    public function testGetAll(): void
29
    {
30
        $this->assertSame(
31
            ['classes', 'constants', 'exceptions', 'functions', 'interfaces', 'traits'],
32
            $this->elements->getAll()
33
        );
34
    }
35
36
    public function testGetEmptyList(): void
37
    {
38
        $this->assertSame(
39
            [
40
                'classes' => [],
41
                'constants' => [],
42
                'exceptions' => [],
43
                'functions' => [],
44
                'interfaces' => [],
45
                'traits' => []
46
            ],
47
            $this->elements->getEmptyList()
48
        );
49
    }
50
}
51