Inheritance: extends PhpBenchLogger
Example #1
0
 /**
  * {@inheritdoc}
  */
 public function endSuite(Suite $suite)
 {
     $this->output->write(PHP_EOL);
     parent::endSuite($suite);
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 protected function formatIterationTime(Iteration $iteration)
 {
     $time = sprintf('%-' . $this->colWidth . 's', parent::formatIterationTime($iteration));
     if (strlen($time) > $this->colWidth) {
         // add one to allow a single space between columns
         $this->colWidth = strlen($time) + 1;
         $this->drawIterations($iteration->getCollection(), array(), null);
         $this->resetLinePosition();
     }
     return $time;
 }
Example #3
0
 /**
  * {@inheritdoc}
  */
 protected function formatIterationTime(Iteration $iteration)
 {
     $time = sprintf('%-' . $this->colWidth . 's', parent::formatIterationTime($iteration));
     if (strlen(trim($time)) >= $this->colWidth) {
         $this->colWidth += 2;
         $this->resetLinePosition();
         $this->drawIterations($iteration->getVariant(), $this->rejects, 'error');
         $this->resetLinePosition();
     }
     return $time;
 }
Example #4
0
 /**
  * {@inheritdoc}
  */
 public function endSuite(SuiteDocument $suiteDocument)
 {
     $this->output->write(PHP_EOL);
     parent::endSuite($suiteDocument);
 }