當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Test_PHPUnit_ControllerTestCase::tearDown方法代碼示例

本文整理匯總了PHP中Zend_Test_PHPUnit_ControllerTestCase::tearDown方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Test_PHPUnit_ControllerTestCase::tearDown方法的具體用法?PHP Zend_Test_PHPUnit_ControllerTestCase::tearDown怎麽用?PHP Zend_Test_PHPUnit_ControllerTestCase::tearDown使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend_Test_PHPUnit_ControllerTestCase的用法示例。


在下文中一共展示了Zend_Test_PHPUnit_ControllerTestCase::tearDown方法的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tearDown

 protected function tearDown()
 {
     $this->resetRequest();
     $this->resetResponse();
     $this->_logout();
     parent::tearDown();
 }
開發者ID:neverstoplwy,項目名稱:contrib-webacula,代碼行數:7,代碼來源:ControllerTestCase.php

示例2: tearDown

 public function tearDown()
 {
     /* @var $dbAdapter Zend_Db_Adapter_Abstract */
     $dbAdapter = Zend_Registry::get('db');
     $dbAdapter->closeConnection();
     parent::tearDown();
 }
開發者ID:bradley-holt,項目名稱:tasked,代碼行數:7,代碼來源:IndexControllerTest.php

示例3: tearDown

 protected function tearDown()
 {
     // restore config
     if (static::BACKUP_CONFIG) {
         ConfigHelper::restoreConfig();
     }
     $this->fixMemoryUsage();
     parent::tearDown();
     $this->tearDownGcFix();
 }
開發者ID:rukzuk,項目名稱:rukzuk,代碼行數:10,代碼來源:AbstractControllerTestCase.php

示例4: tearDown

 protected function tearDown()
 {
     if ($this->databaseTester) {
         $this->databaseTester->onTearDown();
         //default null operation - nothing to
         /**
          * Destroy the tester after the test is run to keep DB connections
          * from piling up.
          */
         $this->databaseTester = null;
     }
     parent::tearDown();
 }
開發者ID:hungtrinh,項目名稱:ProfileManager,代碼行數:13,代碼來源:ControllerIntegrateDbTestCase.php

示例5: tearDown

 /**
  * Cleans up the environment after running a test.
  */
 protected function tearDown()
 {
     // TODO Auto-generated ArticleControllerTest::tearDown()
     parent::tearDown();
 }
開發者ID:kruppi,項目名稱:zfblog,代碼行數:8,代碼來源:ArticleControllerTest.php

示例6: tearDown

 /**
  * Tears down the fixture, for example, close a network connection.
  * This method is called after a test is executed.
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
 }
開發者ID:hthetiot,項目名稱:basezf,代碼行數:10,代碼來源:ErrorControllerTest.php

示例7: tearDown

 /**
  * Remove environment
  *
  */
 protected function tearDown()
 {
     $dbAdapter = Zend_Db_Table_Abstract::getDefaultAdapter();
     $dbAdapter->closeConnection();
     parent::tearDown();
 }
開發者ID:uglide,項目名稱:zfcore-transition,代碼行數:10,代碼來源:ControllerTestCase.php

示例8: tearDown

 /** Tear down. */
 public function tearDown()
 {
     Zend_Controller_Front::getInstance()->resetInstance();
     $this->resetAll();
     parent::tearDown();
 }
開發者ID:josephsnyder,項目名稱:Midas,代碼行數:7,代碼來源:ControllerTestCase.php

示例9: tearDown

 public function tearDown()
 {
     //Zend_Db_Table::getDefaultAdapter()->closeConnection();
     parent::tearDown();
 }
開發者ID:ramonjmz,項目名稱:prosalud,代碼行數:5,代碼來源:ControllerTestCase.php

示例10: tearDown

 /**
  * Reset objects that carry global state between test runs.
  *
  * @return void
  */
 public function tearDown()
 {
     // This fixes a "too many open files" error caused by hanging references
     // to the logger object somewhere in the code (could be anywhere).
     // Since log files are only closed in log writer shutdown (only in
     // destructor), this hanging reference keeps another file open with each
     // test run.
     if ($this->logger instanceof Zend_Log) {
         $this->logger->__destruct();
     }
     if ($this->db instanceof Omeka_Db) {
         Omeka_Test_Resource_Db::setDbAdapter($this->db->getAdapter());
         $this->db->rollBack();
     }
     Zend_Registry::_unsetInstance();
     unset($this->bootstrap);
     unset($this->application);
     parent::tearDown();
 }
開發者ID:lchen01,項目名稱:STEdwards,代碼行數:24,代碼來源:AppTestCase.php

示例11: tearDown

 public function tearDown()
 {
     $this->_helper->tearDown($this->_mockData);
     parent::tearDown();
 }
開發者ID:grrr-amsterdam,項目名稱:garp3,代碼行數:5,代碼來源:ControllerTestCase.php

示例12: tearDown

 /**
  * Clean up database instances.
  */
 protected function tearDown()
 {
     $this->logoutUser();
     $this->resetSearch();
     $this->deleteTestDocuments();
     $this->deleteTestFiles();
     $this->logger = null;
     parent::tearDown();
 }
開發者ID:belapp,項目名稱:opus4-application,代碼行數:12,代碼來源:ControllerTestCase.php

示例13: tearDown

 protected function tearDown()
 {
     $this->_gb = null;
     parent::tearDown();
 }
開發者ID:Alpha-Hydro,項目名稱:alpha-hydro-antares,代碼行數:5,代碼來源:PagesTest.php

示例14: tearDown

 public function tearDown()
 {
     $this->resetRequest();
     $this->resetResponse();
     parent::tearDown();
 }
開發者ID:lukaszjankowski,項目名稱:alchemy,代碼行數:6,代碼來源:ControllerTestCase.php


注:本文中的Zend_Test_PHPUnit_ControllerTestCase::tearDown方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。