Ejemplo n.º 1
0
 protected function onEnd()
 {
     parent::onEnd();
     $total = $this->getCurrentValue() - $this->startValue;
     $this->printLine();
     $this->printLine("Total " . $this->getMetricName() . ": " . $this->format($total));
     if ($total > $this->getThreshold()) {
         $this->printLine();
         $this->printLine("Top tests:");
         arsort($this->values);
         foreach (array_slice($this->values, 0, 5) as $test => $time) {
             $this->printLine($this->format($time, 5) . ' ' . $test);
         }
     }
 }