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