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.
Passed
Push — master ( 5892ba...e25f6a )
by Baptiste
03:37 queued 29s
created

MemoryTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testInterface() 0 17 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Tests\Innmind\Server\Status\Server;
5
6
use Innmind\Server\Status\Server\{
7
    Memory,
8
    Memory\Bytes,
9
};
10
use PHPUnit\Framework\TestCase;
11
12
class MemoryTest extends TestCase
13
{
14
    public function testInterface()
15
    {
16
        $memory = new Memory(
17
            $total = new Bytes(42),
18
            $wired = new Bytes(42),
19
            $active = new Bytes(42),
20
            $free = new Bytes(42),
21
            $swap = new Bytes(42),
22
            $used = new Bytes(42)
23
        );
24
25
        $this->assertSame($total, $memory->total());
26
        $this->assertSame($wired, $memory->wired());
27
        $this->assertSame($active, $memory->active());
28
        $this->assertSame($free, $memory->free());
29
        $this->assertSame($swap, $memory->swap());
30
        $this->assertSame($used, $memory->used());
31
    }
32
}
33