本文整理汇总了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();
}
示例2: tearDown
public function tearDown()
{
/* @var $dbAdapter Zend_Db_Adapter_Abstract */
$dbAdapter = Zend_Registry::get('db');
$dbAdapter->closeConnection();
parent::tearDown();
}
示例3: tearDown
protected function tearDown()
{
// restore config
if (static::BACKUP_CONFIG) {
ConfigHelper::restoreConfig();
}
$this->fixMemoryUsage();
parent::tearDown();
$this->tearDownGcFix();
}
示例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();
}
示例5: tearDown
/**
* Cleans up the environment after running a test.
*/
protected function tearDown()
{
// TODO Auto-generated ArticleControllerTest::tearDown()
parent::tearDown();
}
示例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();
}
示例7: tearDown
/**
* Remove environment
*
*/
protected function tearDown()
{
$dbAdapter = Zend_Db_Table_Abstract::getDefaultAdapter();
$dbAdapter->closeConnection();
parent::tearDown();
}
示例8: tearDown
/** Tear down. */
public function tearDown()
{
Zend_Controller_Front::getInstance()->resetInstance();
$this->resetAll();
parent::tearDown();
}
示例9: tearDown
public function tearDown()
{
//Zend_Db_Table::getDefaultAdapter()->closeConnection();
parent::tearDown();
}
示例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();
}
示例11: tearDown
public function tearDown()
{
$this->_helper->tearDown($this->_mockData);
parent::tearDown();
}
示例12: tearDown
/**
* Clean up database instances.
*/
protected function tearDown()
{
$this->logoutUser();
$this->resetSearch();
$this->deleteTestDocuments();
$this->deleteTestFiles();
$this->logger = null;
parent::tearDown();
}
示例13: tearDown
protected function tearDown()
{
$this->_gb = null;
parent::tearDown();
}
示例14: tearDown
public function tearDown()
{
$this->resetRequest();
$this->resetResponse();
parent::tearDown();
}