Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
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 | } |
||
38 |