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   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 43
rs 10
c 0
b 0
f 0
wmc 4
lcom 1
cbo 2

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testGetClassTypeList() 0 7 1
A testGetAll() 0 7 1
A testGetEmptyList() 0 14 1
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