本文整理匯總了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例7: tearDown
/**
* Remove created files
*
* @return void
*
* @since 12.1
*/
protected function tearDown()
{
$this->_cleanupTestFiles();
unset($this->object);
parent::tearDown();
}
示例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();
}
示例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();
}
示例10: tearDown
/**
* Remove created files
*
* @return void
*
* @since 12.1
*/
protected function tearDown()
{
$this->_cleanupTestFiles();
unset($this->object);
$this->restoreFactoryState();
parent::tearDown();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}