public function testToString() { // ARRANGE // ACT $cron = new Cron(); $cron->setCommand('ls'); $cron->setComment('comment'); $cron->setErrorFile('error.log'); $cron->setLogFile('output.log'); $cron->setMinute(1); $cron->setHour(2); $cron->setDayOfMonth(3); $cron->setMonth(4); $cron->setDayOfWeek(5); // ASSERT $this->assertSame('1 2 3 4 5 ls > output.log 2> error.log #comment', (string) $cron); }