code: protected function onAddError(\Exception $e)
      {
          $this->writeProgressWithColor('fg-red,bold', 'E');
  
          $this->exception = $e;
          $this->lastTestFailed = true;
          $this->flawless = false;
      }
docs: Invoked when an exception is thrown in the test runner.
  
  @param \Exception $e