function paintFail($message) { parent::paintFail($message); $this->failed_tests[] = '[FLR] ' . $this->_extractErrorFileAndLine($message); }
/** * Paint fail faildetail to STDERR. */ function paintFail($message) { parent::paintFail($message); fwrite(STDERR, 'FAIL' . $this->faildetail_separator . $this->_paintTestFailDetail($message)); }
function paintFail($message) { parent::paintFail($message); $breadcrumb = $this->getTestList(); array_shift($breadcrumb); $out = ''; $out.= implode(" -> ", $breadcrumb); $out.= " -> " . $message . "\n"; $this->fail_messages[] = $out; if (!isset($this->_failCounts[$this->suiteName])) { $this->_failCounts[$this->suiteName] = 0; } if (!isset($this->_failCounts[$this->testFileName])) { $this->_failCounts[$this->testFileName] = 0; } if (!isset($this->_failCounts[$this->testMethodName])) { $this->_failCounts[$this->testMethodName] = 0; } $this->_failCounts[$this->testMethodName]++; $this->_failCounts[$this->testFileName]++; $this->_failCounts[$this->suiteName]++; }