__toString()); self::assertInstanceOf('\phpOMS\Utils\TaskSchedule\TaskAbstract', $job); } /** * @testdox A task can be created from an array and rendered * @covers phpOMS\Utils\TaskSchedule\Schedule * * @group framework */ 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()); } }