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


PHP SimpleReporter::paintPass方法代碼示例

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


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

示例1: paintPass

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

示例2: paintPass

 /**
  * acceptor for passing assertion node
  */
 public function paintPass($message)
 {
     parent::paintPass($message);
     $node = new TreemapNode('Assertion', $message, true);
     $current = $this->_stack->peek();
     if ($current) {
         $current->putChild($node);
     } else {
         echo 'no current node';
     }
 }
開發者ID:guicara,項目名稱:simpletest,代碼行數:14,代碼來源:treemap_recorder.php

示例3: paintPass

 function paintPass($message)
 {
     parent::paintPass($message);
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     $test = implode("->", $breadcrumb);
     $result["time"] = time();
     $result["status"] = "Passed";
     $result["test"] = $test;
     $result["message"] = $message;
     $this->results[] = $result;
 }
開發者ID:sebs,項目名稱:simpletest,代碼行數:12,代碼來源:recorder.php

示例4: paintPass

 public function paintPass($message)
 {
     parent::paintPass($message);
     if (!$this->showPasses) {
         return;
     }
     echo '        <tr class="pass">', "\n";
     echo '            <td nowrap="nowrap" valign="top"><span class="pass">Pass</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

示例5: paintPass

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

示例6: paintPass

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

示例7: paintPass

 /**
  * Paints the test pass with a breadcrumbs
  * trail of the nesting test suites below the
  * top level test.
  * @param string $message Pass message displayed in
  *                        the context of the other tests.
  * @access public
  */
 function paintPass($message)
 {
     parent::paintPass($message);
     if ($this->_show_passes) {
         echo "<li class='pass'>\n";
         echo "<span>Passed</span> ";
         $breadcrumb = Set::filter($this->getTestList());
         array_shift($breadcrumb);
         echo implode(" -&gt; ", $breadcrumb);
         echo "<br />" . $this->_htmlEntities($message) . "\n";
         echo "</li>\n";
     }
 }
開發者ID:codegooglecom,項目名稱:ypanel,代碼行數:21,代碼來源:cake_reporter.php

示例8: paintPass

 /**
  * Paints the test passes
  * @param string $message    Failure message displayed in
  *                           the context of the other tests.
  * @access public
  **/
 function paintPass($message)
 {
     parent::paintPass($message);
     $this->test_stack[] = array('data' => array($this->_htmlEntities($message), 'OK'), 'class' => 'simpletest-pass');
     //$this->writeContent($this->_htmlEntities($message). ' OK', NULL, 'simpletest-pass');
 }
開發者ID:sdboyer,項目名稱:sdboyer-test,代碼行數:12,代碼來源:drupal_reporter.php

示例9: paintPass

 /**
  *  パス
  *
  *  @access public
  * @param string   $message    メッセージ
  */
 function paintPass($message)
 {
     parent::paintPass($message);
     $test_list = $this->getTestList();
     $this->report[] = array('type' => 'Pass', 'test' => $test_list[2], 'message' => $message);
 }
開發者ID:hiroki-namekawa,項目名稱:test-upr,代碼行數:12,代碼來源:Ethna_UnitTestReporter.php

示例10: paintPass

 public function paintPass($message)
 {
     parent::paintPass($message);
     $this->method_status['passes'][] = $message;
 }
開發者ID:lubosdz,項目名稱:simpletest-visual-gui,代碼行數:5,代碼來源:SimpleHtmlReporter.php

示例11: paintPass

    function paintPass($message)
    {
        parent::paintPass($message);
        $breadcrumb = $this->getTestList();
        $test = array_pop($breadcrumb);
        echo '<div class="test pass">
			<div class="result">PASSED</div>
			<h3>' . $test . '</h3>
			<div class="details">
				<em>' . $message . '</em>
			</div>
		</div>
		';
    }
開發者ID:ivantcholakov,項目名稱:Bonfire,代碼行數:14,代碼來源:my_reporter.php

示例12: paintPass

 /**
  *    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 paintPass($message)
 {
     parent::paintPass($message);
     //           print "<span class=\"fail\">Pass</span>: ";
     $breadcrumb = $this->getTestList();
     $set = array_shift($breadcrumb);
     $file = basename(array_shift($breadcrumb));
     $class = array_shift($breadcrumb);
     $test = array_shift($breadcrumb);
     if (!isset($this->passfailtrail[$set])) {
         $this->passfailtrail[$set] = array();
     }
     if (!isset($this->passfailtrail[$set][$file])) {
         $this->passfailtrail[$set][$file] = array();
     }
     if (!isset($this->passfailtrail[$set][$file][$class])) {
         $this->passfailtrail[$set][$file][$class] = array();
     }
     if (!isset($this->passfailtrail[$set][$file][$class][$test])) {
         $this->passfailtrail[$set][$file][$class][$test] = array();
     }
     $this->passfailtrail[$set][$file][$class][$test]['pass'][] = $message;
     //print implode(" -&gt; ", $breadcrumb);
     //print " -&gt; " . $this->_htmlEntities($message) . "<br />\n";
 }
開發者ID:GerHobbelt,項目名稱:simpletest,代碼行數:33,代碼來源:reporter_fancy.php

示例13: paintPass

 /**
  *    Paints the test success as a stack trace.
  *    @param string $message    Success message displayed in
  *                              the context of the other tests.
  *    @access public
  */
 function paintPass($message)
 {
     parent::paintPass($message);
     print $this->getPassCount() . ") {$message}\n";
     if ($this->includeBreadCrumb()) {
         $breadcrumb = $this->getTestList();
         array_shift($breadcrumb);
         print "\tin " . implode("\n\tin ", array_reverse($breadcrumb));
         print "\n";
     }
 }
開發者ID:GerHobbelt,項目名稱:simpletest,代碼行數:17,代碼來源:reporter.php

示例14: paintPass

 /**
  * reset failinfo
  */
 function paintPass($message)
 {
     parent::paintPass($message);
     $this->_failinfo = '';
 }
開發者ID:stretchyboy,項目名稱:dokuwiki,代碼行數:8,代碼來源:cli_reporter.php

示例15: paintPass

 /**
  * Paints pass as XML.
  *
  * @param string $message        Message to encode.
  */
 public function paintPass($message)
 {
     parent::paintPass($message);
     print $this->getIndent(1);
     print '<' . $this->namespace . 'pass>';
     print $this->toParsedXml($message);
     print '</' . $this->namespace . "pass>\n";
 }
開發者ID:guicara,項目名稱:simpletest,代碼行數:13,代碼來源:xml.php


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