PhpSpec\Formatter\PrettyFormatter::printException PHP Метод

printException() защищенный Метод

protected printException ( ExampleEvent $event, $depth = null )
$event PhpSpec\Event\ExampleEvent
    protected function printException(ExampleEvent $event, $depth = null)
    {
        $io = $this->getIO();
        if (null === ($exception = $event->getException())) {
            return;
        }
        $depth = $depth ?: 8;
        $message = $this->getPresenter()->presentException($exception, $io->isVerbose());
        if (ExampleEvent::FAILED === $event->getResult()) {
            $io->writeln(sprintf('<failed>%s</failed>', lcfirst($message)), $depth);
        } elseif (ExampleEvent::PENDING === $event->getResult()) {
            $io->writeln(sprintf('<pending>%s</pending>', lcfirst($message)), $depth);
        } elseif (ExampleEvent::SKIPPED === $event->getResult()) {
            $io->writeln(sprintf('<skipped>%s</skipped>', lcfirst($message)), $depth);
        } else {
            $io->writeln(sprintf('<broken>%s</broken>', lcfirst($message)), $depth);
        }
    }