Esempio n. 1
0
 /**
  * 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;
 }
Esempio n. 2
0
 public function testName()
 {
     $e = new Event($this->id, 'php foo');
     $e->description('Testing Cron');
     $this->assertEquals('Testing Cron', $e->description);
 }