| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function testBasicCase() |
||
| 25 | { |
||
| 26 | $one = Decimal::fromInteger(1); |
||
| 27 | $two = Decimal::fromInteger(2); |
||
| 28 | |||
| 29 | $this->assertTrue($one->sub($two)->equals(Decimal::fromInteger(-1))); |
||
| 30 | $this->assertTrue($two->sub($one)->equals($one)); |
||
| 31 | |||
| 32 | $this->assertTrue($one->sub($one)->isZero()); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |