Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function testNegativenegativeDecimalAdd() |
||
29 | { |
||
30 | $n1 = Decimal::fromString('-3.45'); |
||
31 | $n2 = Decimal::fromString('-7.67'); |
||
32 | |||
33 | $this->assertTrue($n1->add($n2)->equals(Decimal::fromString('-11.12'))); |
||
34 | $this->assertTrue($n2->add($n1)->equals(Decimal::fromString('-11.12'))); |
||
35 | } |
||
36 | |||
46 |