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::testInterface()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 13
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 17
rs 9.8333
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