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