| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function testPaymentScheduleConfig() |
||
| 33 | { |
||
| 34 | $startDate = new \DateTime(); |
||
| 35 | $firstPaymentDate = new \DateTime(); |
||
| 36 | $config = new PaymentScheduleConfig(3, $startDate, 'P1D', $firstPaymentDate); |
||
| 37 | |||
| 38 | $schedule = PaymentScheduleFactory::generate($config); |
||
| 39 | |||
| 40 | $this->assertEquals($schedule->getNoOfPayments(), 3); |
||
| 41 | } |
||
| 42 | |||
| 50 |