当前位置: 首页>>代码示例>>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;未经允许,请勿转载。