PhpSpec\Formatter\ConsoleFormatter::displayFatal PHP Method

displayFatal() public method

public displayFatal ( PhpSpec\Message\CurrentExampleTracker $currentExample, $error )
$currentExample PhpSpec\Message\CurrentExampleTracker
    public function displayFatal(CurrentExampleTracker $currentExample, $error)
    {
        if (null !== $error && ($currentExample->getCurrentExample() || $error['type'] == E_ERROR) || is_null($currentExample->getCurrentExample()) && defined('HHVM_VERSION')) {
            ini_set('display_errors', "stderr");
            $failedOpen = $this->io->isDecorated() ? '<failed>' : '';
            $failedClosed = $this->io->isDecorated() ? '</failed>' : '';
            $failedCross = $this->io->isDecorated() ? '✘' : '';
            $this->io->writeln("{$failedOpen}{$failedCross} Fatal error happened while executing the following {$failedClosed}");
            $this->io->writeln("{$failedOpen}    {$currentExample->getCurrentExample()} {$failedClosed}");
            $this->io->writeln("{$failedOpen}    {$error['message']} in {$error['file']} on line {$error['line']} {$failedClosed}");
        }
    }