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