__toString()); self::assertInstanceOf('\phpOMS\Utils\TaskSchedule\TaskAbstract', $job); } #[\PHPUnit\Framework\Attributes\Group('framework')] #[\PHPUnit\Framework\Attributes\TestDox('A cron job can be created from an array and rendered')] public function testCreateJobWithData() : void { $job = CronJob::createWith(['testname', '*', '*', '*', '*', '*', 'testcmd']); self::assertEquals('* * * * * testcmd # name="testname" ', $job->__toString()); } }