function UltimateCronRulesUnitTestCase::testNextSchedule in Ultimate Cron 7.2
File
- tests/
rules.test, line 336 - Tests for Ultimate Cron's cron parser
Class
Code
function testNextSchedule() {
$result = $this
->runTestNext(array(
'result' => '2015-12-05 16:50:00',
'rules' => '50 16 6 12 6',
'now' => '2014-12-31 16:51:00',
));
$this
->assertTRUE($result[0], $result[1]);
$result = $this
->runTestNext(array(
'result' => '2014-12-05 17:50:00',
'rules' => '50 * * * *',
'now' => '2014-12-05 16:51:00',
));
$this
->assertTRUE($result[0], $result[1]);
}