public function afterSuite(SuiteEvent $event)
{
$this->drawStats();
$io = $this->getIO();
$stats = $this->getStatisticsCollector();
$io->freezeTemp();
$io->writeln();
$io->writeln(sprintf("%d specs", $stats->getTotalSpecs()));
$counts = array();
foreach ($stats->getCountsHash() as $type => $count) {
if ($count) {
$counts[] = sprintf('<%s>%d %s</%s>', $type, $count, $type, $type);
}
}
$count = $stats->getEventsCount();
$plural = $count !== 1 ? 's' : '';
$io->write(sprintf("%d example%s ", $count, $plural));
if (count($counts)) {
$io->write(sprintf("(%s)", implode(', ', $counts)));
}
$io->writeln(sprintf("\n%sms", round($event->getTime() * 1000)));
$io->writeln();
}