PHPSpec2\Formatter\ProgressFormatter::afterSuite PHP Method

afterSuite() public method

public afterSuite ( SuiteEvent $event )
$event PHPSpec2\Event\SuiteEvent
    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)));
    }