本文整理汇总了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();
}