Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function testGetInterestAmount($presentValue, $currentPeriod, $yearlyInterestRate, $expectedInterest) |
||
20 | { |
||
21 | $ratePerPeriod = $yearlyInterestRate / 360 * $currentPeriod; |
||
22 | |||
23 | $calculator = new InterestAmountCalculator(); |
||
24 | $interestAmount = $calculator->getInterestAmount($presentValue, $ratePerPeriod); |
||
25 | $this->assertEquals($expectedInterest, $interestAmount); |
||
26 | } |
||
27 | |||
41 |