CodeExplorer createFromCronExpression example
public function testNotIsEmpty(): void
{ $cronInterval =
new CronInterval('0 * * * *'
);
static::
assertFalse($cronInterval->
isEmpty());
} public function testCreateFromCronExpression(): void
{ $cronExpression =
new CronExpression('0 * * * *'
);
$cronInterval = CronInterval::
createFromCronExpression($cronExpression);
static::
assertSame($cronInterval->
getExpression(),
$cronExpression->
getExpression());
}}