當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。