Example #1
0
 /**
  * @inheritdoc
  */
 public function execute(ResultCollection $collection, ResultCollection $aggregatedResults)
 {
     if (!$this->enabled) {
         return;
     }
     $this->output->write($this->formater->terminate($collection, $aggregatedResults));
 }
Example #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);
 }
Example #3
0
 /**
  * @inheritdoc
  */
 public function execute(ResultCollection $collection, ResultCollection $aggregatedResults)
 {
     $this->output->write($this->formater->terminate($collection, $aggregatedResults));
 }