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


PHP TextReporter::paintFooter方法代碼示例

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


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

示例1: paintFooter

 /**
  * Paints the end of the test with a summary of
  * the passes and failures.
  *
  * @param string $test_name Name class of test.
  * @access public
  */
 function paintFooter($test_name)
 {
     parent::paintFooter($test_name);
     echo 'Time taken by tests (in seconds): ' . $this->_timeDuration . "\n";
     if (function_exists('memory_get_peak_usage')) {
         echo 'Peak memory use: (in bytes): ' . number_format(memory_get_peak_usage()) . "\n";
     }
 }
開發者ID:evrard,項目名稱:cakephp2x,代碼行數:15,代碼來源:cake_text_reporter.php

示例2: paintFooter

 function paintFooter($test_name)
 {
     parent::paintFooter($test_name);
     $runner = lmbTestRunner::getCurrent();
     print 'Tests time: ' . $runner->getRuntime() . " sec.\n";
     if ($memory = $runner->getMemoryUsage()) {
         print 'Tests memory usage: ' . $memory . " Mb.\n";
     }
     if ($this->failed_tests) {
         print "=========== FAILED TESTS  ===========\n";
         print implode("\n", $this->failed_tests) . "\n";
     }
 }
開發者ID:knevcher,項目名稱:limb,代碼行數:13,代碼來源:lmbTestShellReporter.class.php

示例3: paintFooter

 /**
  * Capture the attempt to display the final test results and insert the 
  * ANSI-color codes in place.
  *
  * @param string
  * @see TextReporter
  * @access public
  */
 function paintFooter($test_name)
 {
     ob_start();
     parent::paintFooter($test_name);
     $output = trim(ob_get_clean());
     if ($output) {
         if ($this->getFailCount() + $this->getExceptionCount() == 0) {
             $color = $this->_passColor;
         } else {
             $color = $this->_failColor;
         }
         $this->_setColor($color);
         echo $output;
         $this->_resetColor();
     }
 }
開發者ID:AholibamaSI,項目名稱:plymouth-webapp,代碼行數:24,代碼來源:colortext_reporter.php

示例4: paintFooter

 public function paintFooter($test_name)
 {
     parent::paintFooter($test_name);
     echo 'Time: ' . $GLOBALS['TIME'] . "\n";
 }
開發者ID:muddy-28,項目名稱:html5lib-php,代碼行數:5,代碼來源:autorun.php

示例5: paintFooter

    function paintFooter($test_name) {
        parent::paintFooter($test_name);

    }
開發者ID:joeymetal,項目名稱:v1,代碼行數:4,代碼來源:xmlreporter.php


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