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


PHP TestCase::teardown方法代码示例

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


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

示例1: teardown

 /**
  * Teardown method.
  */
 public function teardown()
 {
     $this->fakePlayersService = null;
     $this->fakeMatchesService = null;
     $this->service = null;
     parent::teardown();
 }
开发者ID:TiagoMaiaL,项目名称:Tournament-Manager,代码行数:10,代码来源:SwissServiceUnitTest.php

示例2: teardown

 /**
  * Teardown method.
  */
 public function teardown()
 {
     $this->service = null;
     $this->fakeUsersRepo = null;
     $this->fakePlayersRepo = null;
     parent::teardown();
 }
开发者ID:TiagoMaiaL,项目名称:Tournament-Manager,代码行数:10,代码来源:PlayersServiceUnitTest.php

示例3: teardown

 /**
  * Teardown method
  */
 public function teardown()
 {
     $this->repository = null;
     parent::teardown();
 }
开发者ID:TiagoMaiaL,项目名称:Tournament-Manager,代码行数:8,代码来源:MatchesRepoIntegrationTest.php

示例4: tearDown

 /**
  * Method to tear down whatever was set up before the test.
  *
  * @return  void
  *
  * @since   12.1
  */
 protected function tearDown()
 {
     $this->restoreFactoryState();
     parent::teardown();
 }
开发者ID:klas,项目名称:joomla-cms,代码行数:12,代码来源:JModelDatabaseTest.php

示例5: tearDown

 /**
  * Method to tear down whatever was set up before the test.
  *
  * @return  void
  *
  * @since   12.1
  */
 protected function tearDown()
 {
     $this->restoreFactoryState();
     unset($this->_instance);
     parent::teardown();
 }
开发者ID:joomla-projects,项目名称:media-manager-improvement,代码行数:13,代码来源:JControllerBaseTest.php

示例6: tearDown

 /**
  * Method to tear down whatever was set up before the test.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   12.3
  */
 protected function tearDown()
 {
     unset($this->_instance);
     parent::teardown();
 }
开发者ID:shoffmann52,项目名称:install-from-web-server,代码行数:13,代码来源:JFeedFactoryTest.php

示例7: teardown

 public function teardown()
 {
     parent::teardown();
     // Restore the original driver when the test is finished
     putenv('QUEUE_DRIVER=' . $this->originalDriver);
 }
开发者ID:TFidryForks,项目名称:spira,代码行数:6,代码来源:QueueTest.php


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