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 — develop ( d433ef...8d7806 )
by Baptiste
02:53
created

ProcessTest::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
    Process,
8
    Process\Pid,
9
    Process\User,
10
    Process\Command,
11
    Process\Memory,
12
    Cpu\Percentage,
13
};
14
use Innmind\TimeContinuum\PointInTime;
15
use PHPUnit\Framework\TestCase;
16
17
class ProcessTest extends TestCase
18
{
19
    public function testInterface()
20
    {
21
        $process = new Process(
22
            $pid = new Pid(1),
23
            $user = new User('root'),
24
            $cpu = new Percentage(42),
25
            $memory = new Memory(42),
26
            $start = $this->createMock(PointInTime::class),
27
            $command = new Command('/sbin/launchd')
28
        );
29
30
        $this->assertSame($pid, $process->pid());
31
        $this->assertSame($user, $process->user());
32
        $this->assertSame($cpu, $process->cpu());
33
        $this->assertSame($memory, $process->memory());
34
        $this->assertSame($start, $process->start());
35
        $this->assertSame($command, $process->command());
36
    }
37
}
38