/** * Incomplete test. * * @param PHPUnit2_Framework_Test $test * @param Exception $e * @access public */ public function addIncompleteTest(PHPUnit2_Framework_Test $test, Exception $e) { $error = $this->document->createElement('error', PHPUnit2_Util_Filter::getFilteredStacktrace($e)); $error->setAttribute('message', 'Incomplete Test'); $error->setAttribute('type', get_class($e)); $this->currentTestCase->appendChild($error); $this->testSuiteErrors[$this->testSuiteLevel]++; }
/** * @param PHPUnit2_Framework_TestFailure $defect * @access protected */ protected function printDefectTrace(PHPUnit2_Framework_TestFailure $defect) { $e = $defect->thrownException(); $message = method_exists($e, 'toString') ? $e->toString() : $e->getMessage(); $this->write($message . "\n"); $this->write(PHPUnit2_Util_Filter::getFilteredStacktrace($defect->thrownException())); }