public function footer()
{
$this->output->write($this->color('success', sprintf("\n %d passing", $this->passing)));
$this->output->writeln(sprintf($this->color('muted', " (%s)"), \PHP_Timer::secondsToTimeString($this->getTime())));
if (!empty($this->errors)) {
$this->output->writeln($this->color('error', sprintf(" %d failing", count($this->errors))));
}
if ($this->pending) {
$this->output->writeln($this->color('pending', sprintf(" %d pending", $this->pending)));
}
$this->output->writeln("");
$errorCount = count($this->errors);
for ($i = 0; $i < $errorCount; $i++) {
list($test, $error) = $this->errors[$i];
$this->outputError($i + 1, $test, $error);
}
}