當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SimpleReporter::paintFail方法代碼示例

本文整理匯總了PHP中SimpleReporter::paintFail方法的典型用法代碼示例。如果您正苦於以下問題:PHP SimpleReporter::paintFail方法的具體用法?PHP SimpleReporter::paintFail怎麽用?PHP SimpleReporter::paintFail使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在SimpleReporter的用法示例。


在下文中一共展示了SimpleReporter::paintFail方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: paintFail

 function paintFail($message)
 {
     parent::paintFail($message);
     print $this->_getIndent(1);
     print "<" . $this->_namespace . "fail>";
     print $this->toParsedXml($message);
     print "</" . $this->_namespace . "fail>\n";
 }
開發者ID:BackupTheBerlios,項目名稱:phpbase-svn,代碼行數:8,代碼來源:xml.php

示例2: paintFail

 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");
 }
開發者ID:CREASIG,項目名稱:lizmap-web-client,代碼行數:9,代碼來源:jtextrespreporter.class.php

示例3: paintFail

 /**
  * 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 = '';
     }
 }
開發者ID:pyfun,項目名稱:dokuwiki,代碼行數:12,代碼來源:cli_reporter.php

示例4: paintFail

 /**
  *    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";
 }
開發者ID:riaf,項目名稱:pastit,代碼行數:15,代碼來源:TextDetailReporter.php

示例5: paintFail

 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);
 }
開發者ID:alienpham,項目名稱:helenekling,代碼行數:10,代碼來源:jhtmlrespreporter.class.php

示例6: paintFail

 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";
     }
 }
開發者ID:bufvc,項目名稱:bufvc-potnia-framework,代碼行數:11,代碼來源:unit_test.inc.php

示例7: paintFail

 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;
 }
開發者ID:sebs,項目名稱:simpletest,代碼行數:12,代碼來源:recorder.php

示例8: paintFail

 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();
 }
開發者ID:PublicityPort,項目名稱:OpenCATS,代碼行數:13,代碼來源:CATSTestReporter.php

示例9: paintFail

 /**
  * Paint fail faildetail to STDERR.
  */
 function paintFail($message)
 {
     parent::paintFail($message);
     fwrite(STDERR, 'FAIL' . $this->faildetail_separator . $this->_paintTestFailDetail($message));
 }
開發者ID:kaz0636,項目名稱:openflp,代碼行數:8,代碼來源:cli_reporter.php

示例10: paintFail

 function paintFail($message)
 {
     $this->addTest(false);
     //        echo 'fail: ' . $message . "\n";
     parent::paintFail($message);
 }
開發者ID:VUW-SIM-FIS,項目名稱:emiemi,代碼行數:6,代碼來源:EarlReporter.php

示例11: paintFail

 /**
  * 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');
 }
開發者ID:sdboyer,項目名稱:sdboyer-test,代碼行數:14,代碼來源:drupal_reporter.php

示例12: paintFail

 function paintFail($message)
 {
     parent::paintFail($message);
     $this->failureCount++;
 }
開發者ID:altesien,項目名稱:FinalProject,代碼行數:5,代碼來源:SimpleTestResultFormatter.php

示例13: paintFail

 /**
  * Paint fail faildetail to STDERR.
  */
 function paintFail($message)
 {
     parent::paintFail($message);
     echo 'FAIL' . $this->faildetail_separator . $this->_paintTestFailDetail($message);
 }
開發者ID:xuezheng17,項目名稱:pozvfs,代碼行數:8,代碼來源:epCliReporter.php

示例14: paintFail

 /**
  * @param string $message
  */
 public function paintFail($message)
 {
     parent::paintFail($message);
     $this->paintFailureOrError($message, 'failure');
     ++$this->assertionCount;
 }
開發者ID:kumatch,項目名稱:stagehand-testrunner,代碼行數:9,代碼來源:JUnitXMLReporter.php

示例15: paintFail

 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";
 }
開發者ID:BackupTheBerlios,項目名稱:wikirenderer,代碼行數:9,代碼來源:common.php


注:本文中的SimpleReporter::paintFail方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。