Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function testParseValidCron() |
||
22 | { |
||
23 | $cron = Cron::parse('1 2 3 4 5 my_command'); |
||
24 | $this->assertEquals('1', $cron->getMinute()); |
||
25 | $this->assertEquals('2', $cron->getHour()); |
||
26 | $this->assertEquals('3', $cron->getDayOfMonth()); |
||
27 | $this->assertEquals('4', $cron->getMonth()); |
||
28 | $this->assertEquals('5', $cron->getDayOfWeek()); |
||
29 | $this->assertEquals('my_command', $cron->getCommand()); |
||
30 | $this->assertEquals(null, $cron->getLogFile()); |
||
31 | } |
||
32 | } |
||
33 |