예제 #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;
 }
예제 #2
0
파일: EventTest.php 프로젝트: lavary/crunz
 public function testName()
 {
     $e = new Event($this->id, 'php foo');
     $e->description('Testing Cron');
     $this->assertEquals('Testing Cron', $e->description);
 }