| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | class PercentageTest extends TestCase |
||
| 13 | { |
||
| 14 | public function testInterface() |
||
| 15 | { |
||
| 16 | $percentage = new Percentage(42.24); |
||
| 17 | |||
| 18 | $this->assertSame(42.24, $percentage->toFloat()); |
||
| 19 | $this->assertSame('42.24%', $percentage->toString()); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function testThrowWhenPercentageLowerThanZero() |
||
| 27 | } |
||
| 28 | } |
||
| 29 |