Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function testBasicCase() |
||
12 | { |
||
13 | $n1 = Decimal::fromString('3.45'); |
||
14 | |||
15 | $this->assertTrue(Decimal::fromDecimal($n1)->equals($n1)); |
||
16 | $this->assertTrue(Decimal::fromDecimal($n1, 2)->equals($n1)); |
||
17 | |||
18 | $this->assertTrue(Decimal::fromDecimal($n1, 1)->equals(Decimal::fromString('3.5'))); |
||
19 | $this->assertTrue(Decimal::fromDecimal($n1, 0)->equals(Decimal::fromString('3'))); |
||
20 | } |
||
21 | } |
||
22 |