protected function tearDown()
 {
     $this->resetRequest();
     $this->resetResponse();
     $this->_logout();
     parent::tearDown();
 }
Exemplo n.º 2
0
 public function tearDown()
 {
     /* @var $dbAdapter Zend_Db_Adapter_Abstract */
     $dbAdapter = Zend_Registry::get('db');
     $dbAdapter->closeConnection();
     parent::tearDown();
 }
Exemplo n.º 3
0
 protected function tearDown()
 {
     // restore config
     if (static::BACKUP_CONFIG) {
         ConfigHelper::restoreConfig();
     }
     $this->fixMemoryUsage();
     parent::tearDown();
     $this->tearDownGcFix();
 }
 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();
 }
Exemplo n.º 5
0
 /**
  * Cleans up the environment after running a test.
  */
 protected function tearDown()
 {
     // TODO Auto-generated ArticleControllerTest::tearDown()
     parent::tearDown();
 }
 /**
  * Cleans up the environment after running a test.
  */
 protected function tearDown()
 {
     // TODO Auto-generated Admin_IndexControllerTest::tearDown()
     parent::tearDown();
 }
Exemplo n.º 7
0
 /**
  * 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();
 }
Exemplo n.º 8
0
 /**
  * Cleans up the environment after running a test.
  */
 protected function tearDown()
 {
     // TODO Auto-generated UpgradeTest::tearDown()
     parent::tearDown();
 }
 /**
  * Remove environment
  *
  */
 protected function tearDown()
 {
     $dbAdapter = Zend_Db_Table_Abstract::getDefaultAdapter();
     $dbAdapter->closeConnection();
     parent::tearDown();
 }
Exemplo n.º 10
0
 /** Tear down. */
 public function tearDown()
 {
     Zend_Controller_Front::getInstance()->resetInstance();
     $this->resetAll();
     parent::tearDown();
 }
Exemplo n.º 11
0
 public function tearDown()
 {
     //Zend_Db_Table::getDefaultAdapter()->closeConnection();
     parent::tearDown();
 }
Exemplo n.º 12
0
 /**
  * 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();
 }
Exemplo n.º 13
0
 public function tearDown()
 {
     $this->_helper->tearDown($this->_mockData);
     parent::tearDown();
 }
Exemplo n.º 14
0
 /**
  * Clean up database instances.
  */
 protected function tearDown()
 {
     $this->logoutUser();
     $this->resetSearch();
     $this->deleteTestDocuments();
     $this->deleteTestFiles();
     $this->logger = null;
     parent::tearDown();
 }
Exemplo n.º 15
0
 protected function tearDown()
 {
     $this->_gb = null;
     parent::tearDown();
 }
Exemplo n.º 16
0
 public function tearDown()
 {
     $this->resetRequest();
     $this->resetResponse();
     parent::tearDown();
 }
Exemplo n.º 17
0
 /**
  * Cleans up the environment after running a test.
  */
 protected function tearDown()
 {
     // TODO Auto-generated HistoryTest::tearDown()
     parent::tearDown();
 }
Exemplo n.º 18
0
 /**
  * Cleans up the environment after running a test.
  */
 protected function tearDown()
 {
     // TODO Auto-generated RequestTest::tearDown()
     parent::tearDown();
 }