Lines Matching defs:relativeTime
192 public function testDeterminesIfCronIsDue($schedule, $relativeTime, $nextRun, $isDue)
194 $relativeTimeString = is_int($relativeTime) ? date('Y-m-d H:i:s', $relativeTime) : $relativeTime;
198 if (is_string($relativeTime)) {
199 $relativeTime = new DateTime($relativeTime);
200 } elseif (is_int($relativeTime)) {
201 $relativeTime = date('Y-m-d H:i:s', $relativeTime);
203 $this->assertEquals($isDue, $cron->isDue($relativeTime));
204 $next = $cron->getNextRunDate($relativeTime, 0, true);