예제 #1
0
 /**
  * @inheritdoc
  */
 public function execute(ResultCollection $collection, ResultCollection $aggregatedResults)
 {
     if (!$this->enabled) {
         return;
     }
     $this->output->write($this->formater->terminate($collection, $aggregatedResults));
 }
예제 #2
0
 /**
  * @inheritdoc
  */
 public function execute(ResultCollection $collection, ResultCollection $aggregatedResults)
 {
     if (!$this->destination) {
         return;
     }
     $dir = dirname($this->destination);
     if (!file_exists($dir)) {
         mkdir($dir, 0777, true);
     }
     $this->output->writeln(sprintf('Generating %s Report...', $this->formater->getName()));
     $handle = fopen($this->destination, 'w');
     fwrite($handle, $this->formater->terminate($collection, $aggregatedResults));
     fflush($handle);
     fclose($handle);
 }
예제 #3
0
 /**
  * @inheritdoc
  */
 public function execute(ResultCollection $collection, ResultCollection $aggregatedResults)
 {
     $this->output->write($this->formater->terminate($collection, $aggregatedResults));
 }