| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function testFiniteFiniteMod($number, $mod, $answer, $scale = null) { |
||
| 26 | $numberDec = Decimal::fromString($number); |
||
| 27 | $modDec = Decimal::fromString($mod); |
||
| 28 | $decimalAnswer = $numberDec->mod($modDec, $scale); |
||
| 29 | |||
| 30 | $this->assertTrue( |
||
| 31 | Decimal::fromString($answer)->equals($decimalAnswer), |
||
| 32 | $decimalAnswer . ' % ' . $mod . ' must be equal to ' . $answer . ', but was ' . $decimalAnswer |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | } |
||
| 36 |