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


PHP PHPUnit_TextUI_ResultPrinter::writeProgress方法代碼示例

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


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

示例1: writeProgress

 /**
  * {@inheritdoc}
  */
 protected function writeProgress($progress)
 {
     if ($progress == '.') {
         $progress = $this->fab->paintChar('*');
     }
     parent::writeProgress($progress);
 }
開發者ID:whatthejeff,項目名稱:fab-phpunit-resultprinter,代碼行數:10,代碼來源:ResultPrinter.php

示例2: writeProgress

 /**
  * {@inheritdoc}
  */
 protected function writeProgress($progress)
 {
     if ($this->debug) {
         return parent::writeProgress($progress);
     }
     $this->scoreboard->score($progress);
 }
開發者ID:whatthejeff,項目名稱:nyancat-phpunit-resultprinter,代碼行數:10,代碼來源:ResultPrinter.php

示例3: writeProgress

 /**
  * {@inheritdoc}
  */
 protected function writeProgress($progress)
 {
     if ($this->debug) {
         parent::writeProgress($progress);
         return;
     }
     $this->printClassName();
     $this->printTestCaseStatus('', $progress);
 }
開發者ID:zf2timo,項目名稱:PHPUnitPrettyResultPrinter,代碼行數:12,代碼來源:Printer.php

示例4: writeProgress

 /**
  * @param  string $progress
  */
 protected function writeProgress($progress)
 {
     static $deletedHeader = false;
     if (!$deletedHeader) {
         if (ob_get_length() > 0) {
             ob_end_clean();
             $deletedHeader = true;
         }
     }
     parent::writeProgress($progress);
 }
開發者ID:joskfg,項目名稱:guard-phpunit2,代碼行數:14,代碼來源:ResultPrinter.php

示例5: writeProgress

 /**
  * {@inheritdoc}
  */
 protected function writeProgress($progress)
 {
     switch ($progress) {
         case 'E':
             return parent::writeProgress($this->errorEmoji);
         case 'F':
             return parent::writeProgress($this->failureEmoji);
         case 'I':
             return parent::writeProgress($this->incompleteEmoji);
         case 'R':
             return parent::writeProgress($this->riskyEmoji);
         case 'S':
             return parent::writeProgress($this->skippedEmoji);
         case '.':
             return parent::writeProgress($this->passEmoji);
         default:
             return parent::writeProgress($progress);
     }
 }
開發者ID:whatthejeff,項目名稱:emoji-phpunit-resultprinter,代碼行數:22,代碼來源:ResultPrinter.php

示例6: writeProgress

 protected function writeProgress($progress)
 {
     if ($this->_getProgressBar()) {
         if ($progress != '.') {
             echo $progress . "\n";
         }
         $t = round(array_sum($this->_expectedTimes) - $this->_currentProgress, 1);
         if ($t > 120) {
             $t = floor($t / 60) . ' min ' . $t % 60 . ' sec';
         } else {
             $t = $t . ' sec';
         }
         $this->_getProgressBar()->update($this->_currentProgress, $this->_currentTest . '/' . count($this->_expectedTimes) . ' noch ' . $t);
     } else {
         return parent::writeProgress($progress);
     }
 }
開發者ID:xiaoguizhidao,項目名稱:koala-framework,代碼行數:17,代碼來源:ProgressResultPrinter.php

示例7: writeProgress

 protected function writeProgress($progress)
 {
     if (!$this->silent) {
         parent::writeProgress($progress);
     }
 }
開發者ID:pago,項目名稱:pantr,代碼行數:6,代碼來源:ResultPrinter.php


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