function paintGroupEnd($test_name) { parent::paintGroupEnd($test_name); $this->captureStart(); $this->logger->paintGroupEnd($test_name); $this->captureStop(); if (count($this->_test_stack) == 0) { if ($this->out) { $this->out->write($this->xmlData); $this->out->close(); } } }
/** * @param string $test_name */ public function paintCaseEnd($test_name) { parent::paintCaseEnd($test_name); /* Only count suites where more than one test was run */ if ($this->getRunCount()) { $sb .= "Tests run: " . $this->getRunCount(); $sb .= ", Failures: " . $this->getFailureCount(); $sb .= ", Errors: " . $this->getErrorCount(); $sb .= ", Time elapsed: " . $this->getElapsedTime(); $sb .= " sec\n"; if ($this->out != null) { $this->out->write($sb); } } }
function paintException($message) { parent::paintException($message); $this->failingTests[] = $this->current_case . "->" . $this->current_test; $this->formatError("Exception", $message); }
function paintFail($message) { parent::paintFail($message); $this->formatError("FAILED", $message); }