Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | public function testInterface() |
||
16 | { |
||
17 | $cpu = new Cpu( |
||
18 | $user = new Percentage(31), |
||
19 | $system = new Percentage(33), |
||
20 | $idle = new Percentage(36), |
||
21 | $cores = new Cores(4) |
||
22 | ); |
||
23 | |||
24 | $this->assertSame($user, $cpu->user()); |
||
25 | $this->assertSame($system, $cpu->system()); |
||
26 | $this->assertSame($idle, $cpu->idle()); |
||
27 | $this->assertSame($cores, $cpu->cores()); |
||
28 | $this->assertSame( |
||
29 | 'CPU usage: 31% user, 33% sys, 36% idle', |
||
30 | $cpu->toString(), |
||
31 | ); |
||
34 |