本文整理汇总了PHP中TestCase::tearDown方法的典型用法代码示例。如果您正苦于以下问题:PHP TestCase::tearDown方法的具体用法?PHP TestCase::tearDown怎么用?PHP TestCase::tearDown使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestCase
的用法示例。
在下文中一共展示了TestCase::tearDown方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
/**
* tear down tests
*/
protected function tearDown()
{
if ($this->_restoreTestUser) {
Tinebase_Core::set(Tinebase_Core::USER, $this->_restoreTestUser);
}
parent::tearDown();
}
开发者ID:ingoratsdorf,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:10,代码来源:PersistentFilterTest.php
示例2: tearDown
/**
* Cleans up the environment after running a test.
*
* @return void
*
* @since 12.1
*/
protected function tearDown()
{
$this->_cipher = null;
$this->key = null;
parent::tearDown();
}
示例3: tearDown
/**
* Overrides the parent tearDown method.
*
* @return void
*
* @see PHPUnit_Framework_TestCase::tearDown()
* @since 11.1
*/
protected function tearDown()
{
$this->restoreFactoryState();
// Reset the dispatcher instance.
TestReflection::setValue('JPluginHelper', 'plugins', null);
parent::tearDown();
}
示例4: tearDown
/**
* tear down tests
*/
protected function tearDown()
{
parent::tearDown();
Tinebase_FileSystem::getInstance()->clearStatCache();
Tinebase_FileSystem::getInstance()->clearDeletedFilesFromFilesystem();
Tinebase_Cache_PerRequest::getInstance()->reset();
}
示例5: tearDown
/**
* tear down tests
*/
protected function tearDown()
{
parent::tearDown();
if (!$this->_transactionId) {
Syncroton_Registry::getDeviceBackend()->delete($this->_device->id);
}
}
示例6: 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()
{
$this->restoreErrorHandlers();
$this->restoreFactoryState();
unset($this->object);
parent::tearDown();
}
示例7: tearDown
public function tearDown()
{
DB::statement('DELETE FROM locators');
DB::statement('ALTER TABLE locators AUTO_INCREMENT = 1');
//DB::statement('DELETE FROM rooms');
parent::tearDown();
}
示例8: 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->server;
unset($this->server);
unset($this->object);
parent::tearDown();
}
示例9: tearDown
/**
* Overrides the parent tearDown method.
*
* @return void
*
* @see PHPUnit_Framework_TestCase::tearDown()
* @since 11.1
*/
protected function tearDown()
{
// Reset the dispatcher instance.
TestReflection::setValue('JEventDispatcher', 'instance', null);
$this->restoreFactoryState();
parent::tearDown();
}
示例10: tearDown
/**
* Overrides the parent tearDown method.
*
* @return void
*
* @see PHPUnit_Framework_TestCase::tearDown()
* @since 11.1
*/
protected function tearDown()
{
// Reset the dispatcher instance.
TestReflection::setValue('JEventDispatcher', 'instance', null);
unset($this->class);
parent::tearDown();
}
示例11: tearDown
/**
* Overrides the parent tearDown method.
*
* @return void
*
* @see PHPUnit_Framework_TestCase::tearDown()
* @since 11.1
*/
protected function tearDown()
{
// Reset the dispatcher instance.
TestReflection::setValue('JEventDispatcher', 'instance', null);
TestReflection::setValue('JPluginHelper', 'plugins', null);
parent::tearDown();
}
示例12: tearDown
/**
* This will run at the end of every test method
*/
public function tearDown()
{
// Parent teardown
parent::tearDown();
// Unset ViewHelper class
$this->viewHelper = null;
}
示例13: tearDown
/**
* tear down tests
*/
protected function tearDown()
{
parent::tearDown();
if ($this->_testContainer) {
Tinebase_Container::getInstance()->deleteContainer($this->_testContainer);
}
}
示例14: tearDown
public function tearDown()
{
unset($this->backend);
unset($this->ab);
Utils\Properties::purgeIndexes($this->contactIds);
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
*
* @since 3.1
*/
protected function tearDown()
{
$_SERVER = $this->backupServer;
$this->restoreFactoryState();
parent::tearDown();
JHtmlJqueryInspector::resetLoaded();
}