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


PHP TestCase::tearDown方法代码示例

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


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

示例1: tearDown

 /**
  * tear down tests
  */
 protected function tearDown()
 {
     if ($this->_restoreTestUser) {
         Tinebase_Core::set(Tinebase_Core::USER, $this->_restoreTestUser);
     }
     parent::tearDown();
 }
开发者ID:ingoratsdorf,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:10,代码来源:PersistentFilterTest.php

示例2: tearDown

	/**
	 * Cleans up the environment after running a test.
	 *
	 * @return  void
	 *
	 * @since   12.1
	 */
	protected function tearDown()
	{
		$this->_cipher = null;
		$this->key = null;

		parent::tearDown();
	}
开发者ID:robschley,项目名称:joomla-platform,代码行数:14,代码来源:JCryptCipherSimpleTest.php

示例3: tearDown

 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   11.1
  */
 protected function tearDown()
 {
     $this->restoreFactoryState();
     // Reset the dispatcher instance.
     TestReflection::setValue('JPluginHelper', 'plugins', null);
     parent::tearDown();
 }
开发者ID:Rai-Ka,项目名称:joomla-cms,代码行数:15,代码来源:JModelFormTest.php

示例4: tearDown

 /**
  * tear down tests
  */
 protected function tearDown()
 {
     parent::tearDown();
     Tinebase_FileSystem::getInstance()->clearStatCache();
     Tinebase_FileSystem::getInstance()->clearDeletedFilesFromFilesystem();
     Tinebase_Cache_PerRequest::getInstance()->reset();
 }
开发者ID:bitExpert,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:10,代码来源:DownloadLinkTests.php

示例5: tearDown

 /**
  * tear down tests
  */
 protected function tearDown()
 {
     parent::tearDown();
     if (!$this->_transactionId) {
         Syncroton_Registry::getDeviceBackend()->delete($this->_device->id);
     }
 }
开发者ID:ingoratsdorf,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:10,代码来源:SyncTests.php

示例6: tearDown

 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @return void
  */
 protected function tearDown()
 {
     $this->restoreErrorHandlers();
     $this->restoreFactoryState();
     unset($this->object);
     parent::tearDown();
 }
开发者ID:eshiol,项目名称:joomla-cms,代码行数:13,代码来源:JCacheStorageTest.php

示例7: tearDown

 public function tearDown()
 {
     DB::statement('DELETE FROM locators');
     DB::statement('ALTER TABLE locators AUTO_INCREMENT = 1');
     //DB::statement('DELETE FROM rooms');
     parent::tearDown();
 }
开发者ID:dwisniewski,项目名称:reservations,代码行数:7,代码来源:LocatorTest.php

示例8: tearDown

 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @return  void
  *
  * @since   3.1
  */
 protected function tearDown()
 {
     $_SERVER = $this->server;
     unset($this->server);
     unset($this->object);
     parent::tearDown();
 }
开发者ID:joomla-projects,项目名称:media-manager-improvement,代码行数:15,代码来源:JRouterAdministratorTest.php

示例9: tearDown

 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   11.1
  */
 protected function tearDown()
 {
     // Reset the dispatcher instance.
     TestReflection::setValue('JEventDispatcher', 'instance', null);
     $this->restoreFactoryState();
     parent::tearDown();
 }
开发者ID:christsoldier707,项目名称:joomla-cms,代码行数:15,代码来源:JApplicationBaseTest.php

示例10: tearDown

 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   11.1
  */
 protected function tearDown()
 {
     // Reset the dispatcher instance.
     TestReflection::setValue('JEventDispatcher', 'instance', null);
     unset($this->class);
     parent::tearDown();
 }
开发者ID:joomla-projects,项目名称:media-manager-improvement,代码行数:15,代码来源:JApplicationCliTest.php

示例11: tearDown

 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   11.1
  */
 protected function tearDown()
 {
     // Reset the dispatcher instance.
     TestReflection::setValue('JEventDispatcher', 'instance', null);
     TestReflection::setValue('JPluginHelper', 'plugins', null);
     parent::tearDown();
 }
开发者ID:joomla-projects,项目名称:media-manager-improvement,代码行数:15,代码来源:JModelFormTest.php

示例12: tearDown

 /**
  * This will run at the end of every test method
  */
 public function tearDown()
 {
     // Parent teardown
     parent::tearDown();
     // Unset ViewHelper class
     $this->viewHelper = null;
 }
开发者ID:VermillionOne,项目名称:2015project-website,代码行数:10,代码来源:ViewHelperTest.php

示例13: tearDown

 /**
  * tear down tests
  */
 protected function tearDown()
 {
     parent::tearDown();
     if ($this->_testContainer) {
         Tinebase_Container::getInstance()->deleteContainer($this->_testContainer);
     }
 }
开发者ID:ingoratsdorf,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:10,代码来源:ImportTestCase.php

示例14: tearDown

 public function tearDown()
 {
     unset($this->backend);
     unset($this->ab);
     Utils\Properties::purgeIndexes($this->contactIds);
     parent::tearDown();
 }
开发者ID:alid-wise,项目名称:contacts,代码行数:7,代码来源:addressbookprovider_test.php

示例15: tearDown

 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @return  void
  *
  * @since   3.1
  */
 protected function tearDown()
 {
     $_SERVER = $this->backupServer;
     $this->restoreFactoryState();
     parent::tearDown();
     JHtmlJqueryInspector::resetLoaded();
 }
开发者ID:sural98,项目名称:joomla-cms,代码行数:15,代码来源:JHtmlFormbehaviorTest.php


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