src/Printer.php
protected function onAddError(\Exception $e)
    {
        $this->writeProgressWithColor('fg-red,bold', 'E');

        $this->exception = $e;
        $this->lastTestFailed = true;
        $this->flawless = false;
    }
protected function onAddError(\Exception $e)
    {
        $this->writeProgressWithColor('fg-red,bold', 'E');

        $this->exception = $e;
        $this->lastTestFailed = true;
        $this->flawless = false;
    }
Invoked when an exception is thrown in the test runner.

@param \Exception $e