Esempio n. 1
0
 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");
 }
Esempio n. 3
0
 /**
  * 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 = '';
     }
 }
Esempio n. 4
0
 /**
  *    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(" -&gt; ", $breadcrumb);
     $str .= " -&gt; " . $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";
     }
 }
Esempio n. 7
0
 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();
 }
Esempio n. 9
0
 /**
  * Paint fail faildetail to STDERR.
  */
 function paintFail($message)
 {
     parent::paintFail($message);
     fwrite(STDERR, 'FAIL' . $this->faildetail_separator . $this->_paintTestFailDetail($message));
 }
Esempio n. 10
0
 function paintFail($message)
 {
     $this->addTest(false);
     //        echo 'fail: ' . $message . "\n";
     parent::paintFail($message);
 }
Esempio n. 11
0
 /**
  * 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++;
 }
Esempio n. 13
0
 /**
  * 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;
 }
Esempio n. 15
0
 function paintFail($message)
 {
     SimpleReporter::paintFail($message);
     print '<div class="fail"><strong>Fail</strong>: ';
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode(" -&gt; ", $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);
 }
Esempio n. 17
0
    /**
     *    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>
		';
    }
Esempio n. 18
0
 function paintFail($message)
 {
     parent::paintFail($message);
     error_log("Failure: " . $message);
     $this->terminateAbnormally($message);
 }
Esempio n. 19
0
 function paintFail($message)
 {
     parent::paintFail($message);
     $this->_addToOutput('FAIL', $message);
 }
Esempio n. 20
0
 /**
  *    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);
 }
Esempio n. 22
0
 /**
  * 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();
 }
Esempio n. 23
0
 /**
  * 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(" -&gt; ", $breadcrumb) . "</div>\n";
     echo "</li>\n";
 }
Esempio n. 24
0
 /**
  *    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;
 }
Esempio n. 26
0
 /**
  *    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;
 }
Esempio n. 27
0
File: setup.php Progetto: ssrsfs/blg
 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";
 }
Esempio n. 28
0
 /**
  * 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";
 }
Esempio n. 29
0
	    function paintFail($message) 
	    {
	        parent::paintFail($message);
	    	$breadcrumb = $this->getTestList();
			array_shift($breadcrumb);
			$bc = implode(">", $breadcrumb);
			
    		$this->PrintMessage("Fail: {$bc} -> {$message}", true, 'red');
	    }
Esempio n. 30
0
 /**
  *    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("-&gt;", $breadcrumb);
     $msg .= "-&gt;" . htmlentities($message) . "<br />";
     echo "add_fail('{$msg}');\n";
 }