| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function testAbs() |
||
| 11 | { |
||
| 12 | $this->assertTrue(Decimal::fromInteger(0)->abs()->equals(Decimal::fromInteger(0))); |
||
| 13 | $this->assertTrue(Decimal::fromInteger(5)->abs()->equals(Decimal::fromInteger(5))); |
||
| 14 | $this->assertTrue(Decimal::fromInteger(-5)->abs()->equals(Decimal::fromInteger(5))); |
||
| 15 | } |
||
| 16 | } |
||
| 17 |