Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function testZeroFiniteMul() |
||
11 | { |
||
12 | $z = Decimal::fromInteger(0); |
||
13 | $n = Decimal::fromInteger(5); |
||
14 | |||
15 | $r1 = $z->mul($n); |
||
16 | $r2 = $n->mul($z); |
||
17 | |||
18 | $this->assertTrue($r1->equals($r2)); |
||
19 | $this->assertTrue($r2->equals($r1)); |
||
20 | |||
21 | $this->assertTrue($r1->isZero()); |
||
22 | $this->assertTrue($r2->isZero()); |
||
23 | } |
||
24 | |||
50 |