/** * Print information about method. * * @param int $no Index number * @param MethodEvent $method * @param string $tag Tag for highlight index number. */ private function printMethod($no, MethodEvent $method, $tag) { $this->output->writeln(sprintf('<%5$s>%d.</%5$s> %s::%s()%s', $no, $method->getClass(), $method->getMethod(), $method->getDataSet() === 0 ? '' : ' with data set #' . $no, $tag)); $this->output->writeln(sprintf('[%s]: %s', $method->getException(), $method->getExceptionMessage())); $file = $method->getFile(); $line = $method->getLine(); foreach ($method->getTrace() as $trace) { $this->output->write(sprintf('- %s%s%s()', $trace['class'], $trace['type'], $trace['function'])); $output = sprintf(' at <info>%s</info>:<comment>%d</comment>', $file, $line); $this->output->writeln($output); if (isset($trace['file'])) { $file = $trace['file']; $line = $trace['line']; } } $this->printSkippedTests($method); $this->output->writeln(''); }