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


PHP PHPUnit_Framework_TestCase::onNotSuccessfulTest方法代码示例

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


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

示例1: onNotSuccessfulTest

 public function onNotSuccessfulTest(Exception $e)
 {
     if ($e instanceof Horde_Imap_Client_Exception) {
         $e->setMessage($e->getMessage() . ' [' . self::$live->url . ']');
     }
     parent::onNotSuccessfulTest($e);
 }
开发者ID:raz0rsdge,项目名称:horde,代码行数:7,代码来源:Base.php

示例2: onNotSuccessfulTest

 protected function onNotSuccessfulTest(\Exception $e)
 {
     if ($e instanceof PredictionException) {
         $e = new \PHPUnit_Framework_AssertionFailedError($e->getMessage(), $e->getCode(), $e);
     }
     return parent::onNotSuccessfulTest($e);
 }
开发者ID:phpspec,项目名称:prophecy-phpunit,代码行数:7,代码来源:ProphecyTestCase.php

示例3: onNotSuccessfulTest

 protected function onNotSuccessfulTest(\Exception $e)
 {
     if ($e instanceof UnsupportedDriverActionException) {
         $this->markTestSkipped($e->getMessage());
     }
     parent::onNotSuccessfulTest($e);
 }
开发者ID:joelpittet,项目名称:Mink,代码行数:7,代码来源:TestCase.php

示例4: onNotSuccessfulTest

 protected function onNotSuccessfulTest($e)
 {
     if ($e instanceof CM_Exception) {
         $e = new CMTest_ExceptionWrapper($e);
     }
     parent::onNotSuccessfulTest($e);
 }
开发者ID:cargomedia,项目名称:cm,代码行数:7,代码来源:TestCase.php

示例5: onNotSuccessfulTest

 protected function onNotSuccessfulTest(Exception $e)
 {
     if ($this->getStatus() != PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED) {
         if ($this->isCritical) {
             self::$skipAll = true;
         }
         if (!self::$isIT) {
             self::$skipIT = true;
         }
     }
     parent::onNotSuccessfulTest($e);
 }
开发者ID:skyshore2001,项目名称:JDCloud,代码行数:12,代码来源:WebAPITestBase.php

示例6: onNotSuccessfulTest

 public function onNotSuccessfulTest(Exception $e)
 {
     self::sessionStrategy()->notSuccessfulTest();
     parent::onNotSuccessfulTest($e);
 }
开发者ID:nizarbey,项目名称:phpunit-all-in-one,代码行数:5,代码来源:Selenium2TestCase.php

示例7: onNotSuccessfulTest

 public function onNotSuccessfulTest(Exception $e)
 {
     $this->getStrategy()->notSuccessfulTest();
     parent::onNotSuccessfulTest($e);
 }
开发者ID:nutshellcrm,项目名称:phpunit-selenium,代码行数:5,代码来源:Selenium2TestCase.php

示例8: onNotSuccessfulTest

 protected function onNotSuccessfulTest(Exception $exception)
 {
     // drops and reconnect to a redis server on uncaught exceptions
     RC::resetConnection();
     parent::onNotSuccessfulTest($exception);
 }
开发者ID:GunioRobot,项目名称:predis,代码行数:6,代码来源:ClientFeaturesTest.php

示例9: onNotSuccessfulTest

 protected function onNotSuccessfulTest(\Exception $e)
 {
     parent::onNotSuccessfulTest($e);
     $this->tearDown();
     throw $e;
 }
开发者ID:rdohms,项目名称:azure-sdk-for-php,代码行数:6,代码来源:RestProxyTestBase.php

示例10: onNotSuccessfulTest

 protected function onNotSuccessfulTest(\Exception $e)
 {
     exec(sprintf('rm -rf %s 2>&1 > /dev/null', $this->modelPath));
     parent::onNotSuccessfulTest($e);
 }
开发者ID:pospon,项目名称:ThriftBundle,代码行数:5,代码来源:ThriftBundleTestCase.php

示例11: onNotSuccessfulTest

 /**
  * On not successful
  * In case of an exeception $this->tearDown() will be called before processing this method anyways
  *
  * @throws PHPUnit_Framework_SyntheticError
  * @param Exception $e
  * @return void
  */
 protected function onNotSuccessfulTest(Exception $e)
 {
     if (!($e instanceof PHPUnit_Framework_IncompleteTestError || $e instanceof PHPUnit_Framework_SkippedTestError) && $this->captureScreenshotOnFailure) {
         try {
             $this->takeScreenshot(get_class($e), PHPUnit_Framework_TestFailure::exceptionToString($e), Menta_Util_Screenshot::TYPE_ERROR, $e->getTrace());
         } catch (Exception $screenshotException) {
             // if there's an exception while taking a screenshot because a test was not successful. That's bad luck :)
             throw new PHPUnit_Framework_SyntheticError($e->getMessage() . ' (AND: Exception while taking screenshot: ' . $screenshotException->getMessage() . ')', $e->getCode(), $e->getFile(), $e->getLine(), $e->getTrace());
         }
     }
     parent::onNotSuccessfulTest($e);
 }
开发者ID:aoemedia,项目名称:menta,代码行数:20,代码来源:Selenium2.php

示例12: onNotSuccessfulTest

 public function onNotSuccessfulTest(Exception $e)
 {
     $this->destroy_file_if_exists(NeechyConfig::app_config_path());
     parent::onNotSuccessfulTest($e);
 }
开发者ID:klenwell,项目名称:neechy-app-engine,代码行数:5,代码来源:InstallHandlerTest.php

示例13: onNotSuccessfulTest

 /**
  * This method is called when a test method did not execute successfully.
  *
  * @param \Exception $e Exception.
  *
  * @return void
  */
 protected function onNotSuccessfulTest(\Exception $e)
 {
     $this->_eventDispatcher->dispatch(self::TEST_FAILED_EVENT, new TestFailedEvent($e, $this, $this->_session));
     parent::onNotSuccessfulTest($e);
 }
开发者ID:mablae,项目名称:phpunit-mink,代码行数:12,代码来源:BrowserTestCase.php

示例14: onNotSuccessfulTest

 /**
  * @param Exception $e
  *
  * @throws Exception
  */
 protected function onNotSuccessfulTest(Exception $e)
 {
     parent::onNotSuccessfulTest($e);
 }
开发者ID:phpugen,项目名称:phpunit-vortrag,代码行数:9,代码来源:MethodsTest.php

示例15: onNotSuccessfulTest

 /**
  * handle all test failures
  *
  * @var \Exception $e
  * @uses hadFailure
  */
 protected function onNotSuccessfulTest($e)
 {
     echo $e->getMessage();
     self::$hadFailure = true;
     parent::onNotSuccessfulTest($e);
 }
开发者ID:flairphp,项目名称:flair,代码行数:12,代码来源:TestCase.php


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