Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function testZeroSub() |
||
13 | { |
||
14 | $one = Decimal::fromInteger(1); |
||
15 | $zero = Decimal::fromInteger(0); |
||
16 | |||
17 | $this->assertTrue($one->sub($zero)->equals($one)); |
||
18 | |||
19 | $this->assertTrue($zero->sub($one)->equals($one->additiveInverse())); |
||
20 | $this->assertTrue($zero->sub($one)->equals(Decimal::fromInteger(-1))); |
||
21 | $this->assertTrue($zero->sub($one)->isNegative()); |
||
22 | } |
||
23 | |||
35 |