Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function benchmarkStart(BenchmarkMetadata $benchmark)
 {
     static $first = true;
     if (false === $first) {
         $this->output->write(PHP_EOL);
     }
     $first = false;
     $this->output->write(sprintf('<comment>%s</comment>', $benchmark->getClass()));
     $subjectNames = array();
     foreach ($benchmark->getSubjectMetadatas() as $subject) {
         $subjectNames[] = sprintf('#%s %s', $subject->getIndex(), $subject->getName());
     }
     $this->output->write(sprintf(' (%s)', implode(', ', $subjectNames)));
     $this->output->write(PHP_EOL);
     $this->output->write(PHP_EOL);
 }