function paintFail($message) { parent::paintFail($message); print $this->_getIndent(1); print "<" . $this->_namespace . "fail>"; print $this->toParsedXml($message); print "</" . $this->_namespace . "fail>\n"; }
function paintFail($message) { parent::paintFail($message); $this->_response->addContent($this->getFailCount() . ") {$message}\n"); $breadcrumb = $this->getTestList(); array_shift($breadcrumb); $this->_response->addContent("\tin " . implode("\n\tin ", array_reverse($breadcrumb))); $this->_response->addContent("\n"); }
/** * Paint fail faildetail to STDERR. */ function paintFail($message) { parent::paintFail($message); fwrite(STDERR, 'FAIL' . $this->faildetail_separator . $this->_paintTestFailDetail($message)); if ($this->_failinfo) { fwrite(STDERR, ' additional info was: ' . $this->_failinfo . "\n"); $this->_failinfo = ''; } }
/** * Paints the test failure as a stack trace. * @param string $message Failure message displayed in * the context of the other tests. * @access public */ function paintFail($message) { parent::paintFail($message); print "\n\t" . $this->getFailCount() . ") {$message}\n"; $breadcrumb = $this->getTestList(); array_shift($breadcrumb); print "\tin " . implode("\n\tin ", array_reverse($breadcrumb)); print "\n"; }
function paintFail($message) { parent::paintFail($message); $str = "<span class=\"fail\">Fail</span>: "; $breadcrumb = $this->getTestList(); array_shift($breadcrumb); $str .= implode(" -> ", $breadcrumb); $str .= " -> " . $this->_htmlEntities($message) . "<br />\n"; $this->_response->body->append('MAIN', $str); }
function paintFail($message) { SimpleReporter::paintFail($message); if ($this->getFailCount() <= 10) { print $this->test_name . ": {$message}\n"; $breadcrumb = $this->getTestList(); array_shift($breadcrumb); print "\tin " . implode("\n\tin ", array_reverse($breadcrumb)); print "\n"; } }
function paintFail($message) { parent::paintFail($message); $breadcrumb = $this->getTestList(); array_shift($breadcrumb); $test = implode("->", $breadcrumb); $result["time"] = time(); $result["status"] = "Failed"; $result["test"] = $test; $result["message"] = $message; $this->results[] = $result; }
public function paintFail($message) { parent::paintFail($message); if (!$this->showFails) { return; } echo ' <tr class="fail">', "\n"; echo ' <td nowrap="nowrap" valign="top"><span class="fail">Fail</span></td>', "\n"; echo ' <td nowrap="nowrap" valign="top"><span class="test_case">', $this->_getTestCase(), '</span></td>', "\n"; echo ' <td nowrap="nowrap" valign="top">', $this->_htmlEntities($message), '</td>', "\n"; echo ' </tr>', "\n"; flush(); }
/** * Paint fail faildetail to STDERR. */ function paintFail($message) { parent::paintFail($message); fwrite(STDERR, 'FAIL' . $this->faildetail_separator . $this->_paintTestFailDetail($message)); }
function paintFail($message) { $this->addTest(false); // echo 'fail: ' . $message . "\n"; parent::paintFail($message); }
/** * Paints the test failure with a breadcrumbs * trail of the nesting test suites below the * top level test. * @param string $message Failure message displayed in * the context of the other tests. * @access public */ function paintFail($message) { parent::paintFail($message); $this->test_stack[] = array('data' => array($this->_htmlEntities($message), 'FAIL'), 'class' => 'simpletest-fail'); //$this->writeContent($this->_htmlEntities($message). ' FAIL', NULL, 'simpletest-fail'); }
function paintFail($message) { parent::paintFail($message); $this->failureCount++; }
/** * Paint fail faildetail to STDERR. */ function paintFail($message) { parent::paintFail($message); echo 'FAIL' . $this->faildetail_separator . $this->_paintTestFailDetail($message); }
/** * @param string $message */ public function paintFail($message) { parent::paintFail($message); $this->paintFailureOrError($message, 'failure'); ++$this->assertionCount; }
function paintFail($message) { SimpleReporter::paintFail($message); print '<div class="fail"><strong>Fail</strong>: '; $breadcrumb = $this->getTestList(); array_shift($breadcrumb); print implode(" -> ", $breadcrumb); print '<p class="message">' . $this->_htmlEntities($message) . "</p></div>\n"; }
public function paintFail($message) { parent::paintFail($message); $this->method_status['fails'][] = $message; printf("<div>" . '<strong>Fail</strong>: %s</div>', $message); }
/** * Paints the test failure with a breadcrumbs * trail of the nesting test suites below the * top level test. * @param string $message Failure message displayed in * the context of the other tests. * @access public */ function paintFail($message) { parent::paintFail($message); $breadcrumb = $this->getTestList(); $test = array_pop($breadcrumb); echo '<div class="test fail"> <div class="result">FAILED</div> <h3>' . $test . '</h3> <div class="details"> <em>' . $message . '</em> </div> </div> '; }
function paintFail($message) { parent::paintFail($message); error_log("Failure: " . $message); $this->terminateAbnormally($message); }
function paintFail($message) { parent::paintFail($message); $this->_addToOutput('FAIL', $message); }
/** * Paints the test failure as a stack trace. * @param string $message Failure message displayed in * the context of the other tests. * @access public */ public function paintFail($message) { parent::paintFail($message); $this->addError(self::E_TYPE_FAIL, $this->getTestList(), $message, $message); }
/** * 失敗 * * @access public * @param string $message メッセージ */ function paintFail($message) { parent::paintFail($message); $test_list = $this->getTestList(); $this->report[] = array('type' => 'Fail', 'test' => $test_list[2], 'message' => $message); }
/** * acceptor for failing assertion node */ public function paintFail($message) { parent::paintFail($message); $node = new TreemapNode('Assertion', $message, false); $current = $this->_stack->peek(); $current->putChild($node); $current->fail(); }
/** * Paints the test failure with a breadcrumbs * trail of the nesting test suites below the * top level test. * @param string $message Failure message displayed in * the context of the other tests. * @access public */ function paintFail($message) { parent::paintFail($message); echo "<li class='fail'>\n"; echo "<span>Failed</span>"; echo "<div class='msg'>" . $this->_htmlEntities($message) . "</div>\n"; $breadcrumb = Set::filter($this->getTestList()); array_shift($breadcrumb); echo "<div>" . implode(" -> ", $breadcrumb) . "</div>\n"; echo "</li>\n"; }
/** * Sends a single error to the reporter. * @param SimpleReporter $reporter Current test reporter. * @access public */ function run(&$reporter) { $reporter->paintGroupStart($this->getLabel(), $this->getSize()); $reporter->paintFail('Bad TestSuite [' . $this->getLabel() . '] with error [' . $this->_error . ']'); $reporter->paintGroupEnd($this->getLabel()); return $reporter->getStatus(); }
/** * @param string $message */ public function paintFail($message) { if ($this->reportedFailure) { return; } parent::paintFail($message); if (preg_match('!^(.*) at \\[(.+) line (\\d+)]$!', $message, $matches)) { $this->writeFailure($matches[1], null, $matches[2], $matches[3], $matches[1]); } else { $this->writeFailure($message); } ++$this->assertionCount; $this->reportedFailure = true; }
/** * Paints the test failure as a stack trace. * @param string $message Failure message displayed in * the context of the other tests. * @access public */ function paintFail($message) { global $log, $run; parent::paintFail($message); print $log["stuff"]["case"][$run] = $this->getFailCount() . ") {$message}" . $nl; if ($autotest) { $log["stuff"]["case"][$run] = str_replace("\n", "<br>", $log["stuff"]["case"][$run]); } $breadcrumb = $this->getTestList(); array_shift($breadcrumb); print "\tin " . implode("\n<br>\tin ", array_reverse($breadcrumb)); print $nl; }
function paintFail($message) { // We need to bypass parent::paintFail to increment failures without printing its message. SimpleReporter::paintFail($message); print "<blockquote><strong><span class=\"fail\">Fail</span>: {$message}</strong></blockquote>\n"; }
/** * Paints failure as XML. * * @param string $message Message to encode. */ public function paintFail($message) { parent::paintFail($message); print $this->getIndent(1); print '<' . $this->namespace . 'fail>'; print $this->toParsedXml($message); print '</' . $this->namespace . "fail>\n"; }
function paintFail($message) { parent::paintFail($message); $breadcrumb = $this->getTestList(); array_shift($breadcrumb); $bc = implode(">", $breadcrumb); $this->PrintMessage("Fail: {$bc} -> {$message}", true, 'red'); }
/** * Paints the test failure with a breadcrumbs * trail of the nesting test suites below the * top level test. * @param string $message Failure message displayed in * the context of the other tests. * @access public */ function paintFail($message) { parent::paintFail($message); $msg = "<span class=\"fail\">Fail</span>: "; $breadcrumb = $this->getTestList(); array_shift($breadcrumb); $msg .= implode("->", $breadcrumb); $msg .= "->" . htmlentities($message) . "<br />"; echo "add_fail('{$msg}');\n"; }