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