| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function testPositivePositiveDecimalAdd() |
||
| 20 | { |
||
| 21 | $n1 = Decimal::fromString('3.45'); |
||
| 22 | $n2 = Decimal::fromString('7.67'); |
||
| 23 | |||
| 24 | $this->assertTrue($n1->add($n2)->equals(Decimal::fromString('11.12'))); |
||
| 25 | $this->assertTrue($n2->add($n1)->equals(Decimal::fromString('11.12'))); |
||
| 26 | } |
||
| 27 | |||
| 46 |