/** * Tests if a task gives an error when trying to use step rules in ways * which are not permitted. * * This test applies to days of the week ('weekdays'). */ public function testCannotInterpretInvalidStepRules2() { $task = new Zend_Scheduler_Task(); $task->setTime(mktime(23, 59, 59, 12, 31, 2006)); $task->setWeekdays('Monday/3'); try { $task->isScheduled(); } catch (Zend_Scheduler_Exception $e) { return true; } $this->fail('Did not prevent invalid weekday step rule'); }