__toString()); self::assertInstanceOf('\phpOMS\Utils\TaskSchedule\TaskAbstract', $job); } #[\PHPUnit\Framework\Attributes\Group('framework')] #[\PHPUnit\Framework\Attributes\TestDox('A task can be created from an array and rendered')] public function testCreateJobWithData() : void { $job = Schedule::createWith(['hostname', 'testname', '2018-06-02', 'Ready', 'Background', 'N/A', '1', 'INTERVAL', 'testcmd', '/var/usr', 'comment']); self::assertEquals('/tn testname INTERVAL testcmd', $job->__toString()); } }