code: public function paintFooter($test_name)
      {
          ob_start();
          parent::paintFooter($test_name);
          $output = trim(ob_get_clean());
          if ($output) {
              if (($this->getFailCount() + $this->getExceptionCount()) == 0) {
                  $color = $this->_passColor;
              } else {
                  $color = $this->_failColor;
              }
  
              $this->_setColor($color);
              echo $output;
              $this->_resetColor();
          }
      }
docs: Capture the attempt to display the final test results
  and insert the ANSI-color codes in place.
  
  @param string
  
  @see TextReporter