/** * Format the event error message * * @param \Crunz\Event $event * * @return string */ protected function formatEventError(Event $event) { return $event->description . '(' . $event->getCommandForDisplay() . ') ' . PHP_EOL . $event->getProcess()->getErrorOutput() . PHP_EOL; }
public function testName() { $e = new Event($this->id, 'php foo'); $e->description('Testing Cron'); $this->assertEquals('Testing Cron', $e->description); }