当前位置: 首页>>代码示例>>PHP>>正文


PHP PHPUnit_TextUI_ResultPrinter::addFailure方法代码示例

本文整理汇总了PHP中PHPUnit_TextUI_ResultPrinter::addFailure方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_TextUI_ResultPrinter::addFailure方法的具体用法?PHP PHPUnit_TextUI_ResultPrinter::addFailure怎么用?PHP PHPUnit_TextUI_ResultPrinter::addFailure使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PHPUnit_TextUI_ResultPrinter的用法示例。


在下文中一共展示了PHPUnit_TextUI_ResultPrinter::addFailure方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addFailure

 public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
 {
     if ($this->_verbose) {
         echo $e;
     }
     return parent::addFailure($test, $e, $time);
 }
开发者ID:xiaoguizhidao,项目名称:koala-framework,代码行数:7,代码来源:ProgressResultPrinter.php

示例2: addFailure

 /**
  * {@inheritdoc}
  */
 public function addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, $time)
 {
     if ($this->debug) {
         return parent::addFailure($test, $e, $time);
     }
     $this->writeProgress('fail');
     $this->lastTestFailed = TRUE;
 }
开发者ID:whatthejeff,项目名称:nyancat-phpunit-resultprinter,代码行数:11,代码来源:ResultPrinter.php

示例3: addFailure

 /**
  * A failure occurred.
  *
  * @param  PHPUnit_Framework_Test                 $test
  * @param  PHPUnit_Framework_AssertionFailedError $e
  * @param  float                                  $time
  */
 public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
 {
     if (!$this->colors) {
         parent::addFailure($test, $e, $time);
         return;
     }
     $this->writeProgress(Stagehand_TestRunner_Coloring::red('F'));
     $this->lastTestFailed = TRUE;
 }
开发者ID:rsky,项目名称:makegood,代码行数:16,代码来源:ProgressPrinter.php

示例4: addFailure

 public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
 {
     if ($this->verbose) {
         echo "        FAIL: '" . $e->getMessage() . "'\n" . $e->getTraceAsString();
     }
     parent::addFailure($test, $e, $time);
     if ($this->_blDBResetPerTest && !isset($test->blNoDbResetAfterTest)) {
         $this->_oDBMaintenance->restoreDB($this->_iDBChangeMode, $this->_iDBChangeOutput);
         echo "|";
     }
 }
开发者ID:OXIDprojects,项目名称:debugax,代码行数:11,代码来源:oxPrinter.php

示例5: addFailure

 /**
  * A failure occurred.
  *
  * @param  PHPUnit_Framework_Test                 $test
  * @param  PHPUnit_Framework_AssertionFailedError $e
  * @param  float                                  $time
  */
 public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
 {
     $message = 'failed';
     $this->write($this->colors ? Stagehand_TestRunner_Coloring::red($message) : $message);
     parent::addFailure($test, $e, $time);
 }
开发者ID:nojimage,项目名称:stagehand-testrunner,代码行数:13,代码来源:DetailedProgressPrinter.php

示例6: addFailure

 /**
  * A failure occurred.
  *
  * @param PHPUnit_Framework_Test $test
  * @param PHPUnit_Framework_AssertionFailedError $e
  * @param float $time
  */
 public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
 {
     parent::addFailure($test, $e, $time);
     wfDebugLog($this->logChannel, 'FAILURE in ' . $this->getTestName($test) . ': ' . $this->getErrorName($e));
 }
开发者ID:MediaWiki-stable,项目名称:1.26.1,代码行数:12,代码来源:MediaWikiPHPUnitTestListener.php

示例7: addFailure

 public function addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, $time)
 {
     $this->write('<span style="color:red">');
     parent::addFailure($test, $e, $time);
     $this->write('</span>');
 }
开发者ID:timetoogo,项目名称:pinq,代码行数:6,代码来源:TestRunner.php


注:本文中的PHPUnit_TextUI_ResultPrinter::addFailure方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。