| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | class LoadAverageTest extends TestCase |
||
| 13 | { |
||
| 14 | public function testInterface() |
||
| 15 | { |
||
| 16 | $load = new LoadAverage(1, 5, 15); |
||
| 17 | |||
| 18 | $this->assertSame(1.0, $load->lastMinute()); |
||
| 19 | $this->assertSame(5.0, $load->lastFiveMinutes()); |
||
| 20 | $this->assertSame(15.0, $load->lastFifteenMinutes()); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function testThrowWhenNegativeLastMinuteLoad() |
||
| 28 | } |
||
| 29 | |||
| 30 | public function testThrowWhenNegativeLastFiveMinuteLoad() |
||
| 35 | } |
||
| 36 | |||
| 37 | public function testThrowWhenNegativeLastFifteenMinuteLoad() |
||
| 44 |