예제 #1
0
 public function summary(GenericEvent $event)
 {
     if (count($event->getProcessEvents()) > 0) {
         $this->container->get('ui.output')->writeln('');
         $this->container->get('ui.output')->writeln('');
         $this->container->get('logger')->addDebug('Print Summary');
         foreach ($event->getProcessEvents() as $processEvent) {
             $this->renderResult($processEvent);
         }
     }
 }
예제 #2
0
 public function process(GenericEvent $event)
 {
     $results = $event->getProcessEvents();
     if (empty($results) || !$this->isEnabled()) {
         return;
     }
     if (!$this->importCached()) {
         return;
     }
     $options = $this->options;
     if ($options['output.html']) {
         $this->reportHtml($options['output.html']);
     }
     if ($options['output.clover']) {
         $this->reportClover($options['output.clover']);
     }
     if ($options['output.text']) {
         $this->reportText();
     }
 }