当前位置: 首页>>代码示例>>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;未经允许,请勿转载。