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


PHP TestCaseDatabase::tearDown方法代码示例

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


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

示例1: tearDown

 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  */
 protected function tearDown()
 {
     // Restore the factory state
     $this->restoreFactoryState();
     unset($this->object);
     parent::tearDown();
 }
开发者ID:Rai-Ka,项目名称:joomla-cms,代码行数:11,代码来源:FinderIndexerTest.php

示例2: tearDown

 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  */
 protected function tearDown()
 {
     // Reset the filter instances.
     TestReflection::setValue('JFilterInput', 'instances', array());
     $this->restoreFactoryState();
     parent::tearDown();
 }
开发者ID:Rai-Ka,项目名称:joomla-cms,代码行数:14,代码来源:JInstallerAdapterTest.php

示例3: tearDown

 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @return  void
  *
  * @since   3.0
  */
 protected function tearDown()
 {
     TestReflection::setValue('JComponentHelper', 'components', array());
     // Restore the state
     $this->restoreFactoryState();
     parent::tearDown();
 }
开发者ID:Rai-Ka,项目名称:joomla-cms,代码行数:15,代码来源:JHelpTest.php

示例4: 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;
     unset($this->backupServer);
     $this->restoreFactoryState();
     parent::tearDown();
 }
开发者ID:eshiol,项目名称:joomla-cms,代码行数:15,代码来源:JHtmlBatchTest.php

示例5: tearDown

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

示例6: tearDown

 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   3.6
  */
 protected function tearDown()
 {
     unset($this->db);
     parent::tearDown();
 }
开发者ID:joomla-projects,项目名称:media-manager-improvement,代码行数:13,代码来源:JDatabaseDriverTest.php

示例7: tearDown

 /**
  * Remove created files
  *
  * @return  void
  *
  * @since   12.1
  */
 protected function tearDown()
 {
     $this->_cleanupTestFiles();
     unset($this->object);
     parent::tearDown();
 }
开发者ID:joomla-projects,项目名称:media-manager-improvement,代码行数:13,代码来源:JAccessTest.php

示例8: tearDown

 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   3.6
  */
 protected function tearDown()
 {
     unset($this->object);
     $this->restoreFactoryState();
     parent::tearDown();
 }
开发者ID:Rai-Ka,项目名称:joomla-cms,代码行数:14,代码来源:JTableContenttypeTest.php

示例9: tearDown

 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   3.2
  */
 protected function tearDown()
 {
     // Reset the dispatcher and application instances.
     TestReflection::setValue('JEventDispatcher', 'instance', null);
     TestReflection::setValue('JApplicationCms', 'instances', array());
     $_SERVER = $this->backupServer;
     unset($this->backupServer);
     unset($config);
     unset($this->class);
     $this->restoreFactoryState();
     parent::tearDown();
 }
开发者ID:eshiol,项目名称:joomla-cms,代码行数:20,代码来源:JApplicationSiteTest.php

示例10: tearDown

 /**
  * Remove created files
  *
  * @return  void
  *
  * @since   12.1
  */
 protected function tearDown()
 {
     $this->_cleanupTestFiles();
     unset($this->object);
     $this->restoreFactoryState();
     parent::tearDown();
 }
开发者ID:Rai-Ka,项目名称:joomla-cms,代码行数:14,代码来源:JAccessTest.php

示例11: tearDown

 /**
  * Tears down the fixture.
  *
  * This method is called after a test is executed.
  *
  * @return  void
  *
  * @since   11.3
  */
 public function tearDown()
 {
     $this->restoreFactoryState();
     parent::tearDown();
 }
开发者ID:nirpan,项目名称:joomla-cms,代码行数:14,代码来源:JFactoryTest.php

示例12: tearDown

 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   3.2
  */
 protected function tearDown()
 {
     TestReflection::setValue('JPluginHelper', 'plugins', null);
     // Reset some web inspector static settings.
     JApplicationCmsInspector::$headersSent = false;
     JApplicationCmsInspector::$connectionAlive = true;
     $_SERVER = $this->backupServer;
     $_SERVER = $this->backupServer;
     unset($this->backupServer);
     unset($config);
     unset($this->class);
     $this->restoreFactoryState();
     parent::tearDown();
 }
开发者ID:Rai-Ka,项目名称:joomla-cms,代码行数:22,代码来源:JApplicationCmsTest.php

示例13: tearDown

 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   3.6
  */
 protected function tearDown()
 {
     unset($this->object);
     unset($app);
     parent::tearDown();
 }
开发者ID:n9iels,项目名称:joomla-cms,代码行数:14,代码来源:JComponentRouterViewTest.php

示例14: tearDown

 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   3.2
  */
 protected function tearDown()
 {
     // Reset the dispatcher instance.
     TestReflection::setValue('JEventDispatcher', 'instance', null);
     // Reset some web inspector static settings.
     JApplicationCmsInspector::$headersSent = false;
     JApplicationCmsInspector::$connectionAlive = true;
     $_SERVER = $this->backupServer;
     $this->restoreFactoryState();
     parent::tearDown();
 }
开发者ID:SysBind,项目名称:joomla-cms,代码行数:19,代码来源:JApplicationCmsTest.php

示例15: 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()
	{
		parent::tearDown();
	}
开发者ID:robschley,项目名称:joomla-platform,代码行数:10,代码来源:JTableTest.php


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