You are here

private function UltimateCronRulesUnitTestCase::getIntervals in Ultimate Cron 7

Same name and namespace in other branches
  1. 6 tests/rules.test \UltimateCronRulesUnitTestCase::getIntervals()
  2. 7.2 tests/rules.test \UltimateCronRulesUnitTestCase::getIntervals()
3 calls to UltimateCronRulesUnitTestCase::getIntervals()
UltimateCronRulesUnitTestCase::testIntervals2MinuteRange in tests/rules.test
UltimateCronRulesUnitTestCase::testIntervals2MinuteRangeWithOffset in tests/rules.test
UltimateCronRulesUnitTestCase::testIntervalsSpecificMinute in tests/rules.test

File

tests/rules.test, line 22
Tests for Ultimate Cron's cron parser

Class

UltimateCronRulesUnitTestCase
@file

Code

private function getIntervals($rule) {

  // Generate result message
  require_once dirname(__FILE__) . '/../CronRule.class.php';
  $message = array();
  $cron = new CronRule($rule);
  return $cron
    ->getIntervals();
}