| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function testWithEqualPayments(float $correctValue, int $principal, int $payment, int $numberOfMonths, float $guess) |
||
| 14 | { |
||
| 15 | $calculator = new Calculator(); |
||
| 16 | $interest = $calculator->withEqualPayments($principal, $payment, $numberOfMonths, $guess); |
||
| 17 | $this->assertEquals($correctValue, $interest, 'Failed to calculate effective interest with specified payments.', 0.0001); |
||
| 18 | } |
||
| 19 | |||
| 29 |