public function afterSuite(SuiteEvent $event) { $this->io->writeln(); foreach (array('failed' => $this->stats->getFailedEvents(), 'broken' => $this->stats->getBrokenEvents()) as $status => $events) { if (!count($events)) { continue; } $this->io->writeln(sprintf("<%s>---- %s examples</%s>\n", $status, $status, $status)); foreach ($events as $failEvent) { $this->io->writeln(sprintf('%s', str_replace('\\', DIRECTORY_SEPARATOR, $failEvent->getSpecification()->getTitle())), 8); $this->afterExample($failEvent); $this->io->writeln(); } } $counts = array(); foreach ($this->stats->getCountsHash() as $type => $count) { if ($count) { $counts[] = sprintf('<%s>%d %s</%s>', $type, $count, $type, $type); } } $this->io->write(sprintf("\n%d examples ", $this->stats->getEventsCount())); if (count($counts)) { $this->io->write(sprintf("(%s)", implode(', ', $counts))); } $this->io->writeln(sprintf("\n%sms", round($event->getTime() * 1000))); }
public function afterSuite(SuiteEvent $event) { $this->io->freezeTemp(); $this->io->writeln(); $counts = array(); foreach ($this->stats->getCountsHash() as $type => $count) { if ($count) { $counts[] = sprintf('<%s>%d %s</%s>', $type, $count, $type, $type); } } $this->io->write(sprintf("\n%d examples ", $this->stats->getEventsCount())); if (count($counts)) { $this->io->write(sprintf("(%s)", implode(', ', $counts))); } $this->io->writeln(sprintf("\n%sms", round($event->getTime() * 1000))); }