/** * @group cronCompile */ public function testDynamicMethods() { $e = new Event($this->id, 'php foo'); $this->assertEquals('*/6 * * * * *', $e->everySixMinutes()->getExpression()); $e = new Event($this->id, 'php bar'); $this->assertEquals('0 */12 * * * *', $e->everyTwelveHours()->getExpression()); $e = new Event($this->id, 'php foo'); $this->assertEquals('*/35 * * * * *', $e->everyThirtyFiveMinutes()->getExpression()); $e = new Event($this->id, 'php bar'); $this->assertEquals('*/578 * * * * *', $e->everyFiveHundredSeventyEightMinutes()->getExpression()); $e = new Event($this->id, 'php foo'); $e->everyFiftyMinutes()->mondays(); $this->assertEquals('*/50 * * * 1 *', $e->getExpression()); $this->assertFalse($e->isDue()); }