/**
  * @param ConsoleTerminateEvent $event
  */
 public function onCronFinished(ConsoleTerminateEvent $event)
 {
     if (!$this->skipped) {
         $this->duration = microtime(true) - $this->start;
         $this->execution = $this->reporter->logExecution($this->alias, $this->duration, $this->startDatetime);
     }
 }
Пример #2
0
 /**
  * @expectedException \InvalidArgumentException
  * @expectedExceptionMessage Unknown cron alias "unknown"
  */
 public function testLogExecutionWithUnknownAlias()
 {
     $this->report->logExecution('unknown', 1, new \DateTime());
 }