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