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

ProcessTest   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
    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