Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class MemoryTest extends TestCase |
||
13 | { |
||
14 | public function testInterface() |
||
15 | { |
||
16 | $memory = new Memory(42.24); |
||
17 | |||
18 | $this->assertSame(42.24, $memory->toFloat()); |
||
19 | $this->assertSame('42.24%', $memory->toString()); |
||
20 | } |
||
21 | |||
22 | public function testThrowWhenMemoryLowerThanZero() |
||
23 | { |
||
24 | $this->expectException(OutOfBoundsPercentage::class); |
||
25 | |||
26 | new Memory(-1); |
||
27 | } |
||
28 | |||
29 | public function testThrowWhenMemoryHigherThanHundred() |
||
34 | } |
||
35 | } |
||
36 |