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


PHP HtmlReporter::paintPass方法代碼示例

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


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

示例1: paintPass

 /**
  * Called when a pass needs to be output.
  */
 function paintPass($message)
 {
     //(Implicitly call grandparent, as parent not implemented.)
     parent::paintPass($message);
     if ($this->showpasses) {
         $this->_paintPassFail('pass', $message);
     }
 }
開發者ID:saurabh947,項目名稱:MoodleLearning,代碼行數:11,代碼來源:ex_reporter.php

示例2: paintPass

 function paintPass($message)
 {
     parent::paintPass($message);
     print "<span class=\"pass\">Pass</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     //print implode("->", $breadcrumb);
     print "&#x2192; {$message}<br />\n";
 }
開發者ID:rolwi,項目名稱:koala,代碼行數:9,代碼來源:showpasses.class.php

示例3: paintPass

 public function paintPass($message)
 {
     parent::paintPass($message);
     echo "<span class=\"pass\">Pass</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     echo implode("-&gt;", $breadcrumb);
     echo "-&gt;{$message}<br />\n";
 }
開發者ID:ryanunderwood,項目名稱:phpVMS,代碼行數:9,代碼來源:run_tests.php

示例4: paintPass_Classname

 public function paintPass_Classname($message)
 {
     parent::paintPass($message);
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     $testsubject_classname = $breadcrumb['1'] . '-&gt;' . $breadcrumb['2'] . '()';
     // combine classname + methodname
     echo '<span class="pass">' . $testsubject_classname . '</span><br />';
 }
開發者ID:Clansuite,項目名稱:Clansuite,代碼行數:9,代碼來源:reporter.php

示例5: paintPass

 function paintPass($message)
 {
     parent::paintPass($message);
     print '<span class="pass">Pass</span>: ';
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode(" -> ", $breadcrumb);
     print " -> {$message}<br />\n";
 }
開發者ID:awaiskhansar,項目名稱:container-validator,代碼行數:9,代碼來源:test_reporter.php

示例6: paintPass

 function paintPass($message)
 {
     parent::paintPass($message);
     print "<span class=\"pass\">Pass</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode(" -&gt; ", $breadcrumb);
     print ' -&gt; ' . htmlspecialchars($message) . "<br />\n";
 }
開發者ID:Ariflaw,項目名稱:b2evolution,代碼行數:9,代碼來源:HtmlReporterShowPasses.class.php

示例7: paintPass

 function paintPass($message)
 {
     parent::paintPass($message);
     print "<table><tr><td class=\"first\"><span class=\"pass\">Pass:</span></td><td><span class=\"pass\">";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode(" -> ", $breadcrumb);
     $message = str_replace('replace55', "pass", $message);
     print ": {$message}</td></tr></table>\n";
 }
開發者ID:robomc,項目名稱:solr-tests,代碼行數:10,代碼來源:pretty_passes_reporter.php

示例8: paintPass

 function paintPass($message)
 {
     $message = str_replace(TESTCASESFOLDER, '', $message);
     parent::paintPass($message);
     print "<span class=\"pass\">Pass</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode("->", $breadcrumb);
     print "->{$message}<br />\n";
 }
開發者ID:googlecode-mirror,項目名稱:bulldoc,代碼行數:10,代碼來源:showpass_reporter.php

示例9: paintPass

 function paintPass($message)
 {
     // print "<span class=\"pass\">Pass</span>: ";
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     //  print implode("-&gt;", $breadcrumb);
     //  print "->$message<br />\n";
     //  print "<hr><br>";
     parent::paintPass($message);
     $_SESSION['passes']++;
 }
開發者ID:VUW-SIM-FIS,項目名稱:emiemi,代碼行數:11,代碼來源:show_passes.php

示例10: paintPass

 function paintPass($message)
 {
     if (PRINTPASSES) {
         parent::paintPass($message);
         print "<span class=\"pass\">Pass</span>: ";
         $breadcrumb = $this->getTestList();
         array_shift($breadcrumb);
         print implode("-&gt;", $breadcrumb);
         print "&nbsp;->&nbsp;{$message}<br />\n";
     }
 }
開發者ID:rchicoria,項目名稱:epp-drs,代碼行數:11,代碼來源:class.NiceReporter.php

示例11: paintPass

 function paintPass($message)
 {
     parent::paintPass($message);
     $messageWithoutTrace = trim(substr($message, 0, strpos($message, " at [")));
     if (strlen($messageWithoutTrace) == 0) {
         // don't show empty messages (they appear if debugging is conditionally disabled)
         return;
     }
     print "<span class=\"pass\">Pass</span>: ";
     print "{$messageWithoutTrace}<br />\n";
 }
開發者ID:eliud254,項目名稱:q-auction,代碼行數:11,代碼來源:qcubed_unit_tests.php

示例12: paintPass

 /**
  * Display the passed tests
  *
  * @param string $message Display a custom message for the test
  */
 function paintPass($message)
 {
     parent::paintPass($message);
     if ($this->show) {
         print "<span class=\"pass\">PASS</span>: ";
         $breadcrumb = $this->getTestList();
         array_shift($breadcrumb);
         print implode("->", $breadcrumb);
         print "->{$message}<br />\n";
     }
 }
開發者ID:5haman,項目名稱:knowledgetree,代碼行數:16,代碼來源:test.php

示例13: paintPass

 function paintPass($message)
 {
     parent::paintPass($message);
     if ($this->o['passes'] == 1) {
         print "<div class='box' style='margin:auto;width:95%;margin-bottom:20px;'>\n";
         print "<span class=\"pass\">Pass</span>: ";
         $breadcrumb = $this->getTestList();
         array_shift($breadcrumb);
         $breadcrumb[count($breadcrumb) - 1] = str_replace(array('test_', '_'), array('', ' '), $breadcrumb[count($breadcrumb) - 1]);
         print '<strong>' . implode("->", $breadcrumb) . '</strong><br>';
         print "{$message}\n";
         print "</div>\n";
     }
 }
開發者ID:nvoyx,項目名稱:nvoyx,代碼行數:14,代碼來源:nvreporter.php

示例14: paintPass

 public function paintPass($message)
 {
     parent::paintPass($message);
     print '<span class="pass">Pass</span>: ';
     $breadcrumb = $this->getTestList();
     array_shift($breadcrumb);
     print implode(' -&gt; ', $breadcrumb);
     print ' -&gt; ' . htmlentities($message) . "<br />\n";
 }
開發者ID:kapai69,項目名稱:fl-ru-damp,代碼行數:9,代碼來源:visual_test.php

示例15: paintPass

 function paintPass($message)
 {
     parent::paintPass($message);
     if (isset($_REQUEST['show_pass'])) {
         print '<span class="pass">Pass</span>: ';
         $breadcrumb = $this->getTestList();
         array_shift($breadcrumb);
         print implode(" -&gt; ", $breadcrumb);
         print " -&gt; " . $this->_htmlEntities($message) . "<br />\n";
     }
 }
開發者ID:nterray,項目名稱:tuleap,代碼行數:11,代碼來源:TestsPluginReporter.class.php


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