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