本文整理汇总了PHP中DokuWikiTest::tearDown方法的典型用法代码示例。如果您正苦于以下问题:PHP DokuWikiTest::tearDown方法的具体用法?PHP DokuWikiTest::tearDown怎么用?PHP DokuWikiTest::tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DokuWikiTest
的用法示例。
在下文中一共展示了DokuWikiTest::tearDown方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
/**
* Default teardown
*
* we always make sure the database is clear
*/
protected function tearDown()
{
parent::tearDown();
/** @var \helper_plugin_struct_db $db */
$db = plugin_load('helper', 'struct_db');
$db->resetDB();
}
示例2: tearDown
/**
* @coversNothing
*/
public function tearDown()
{
/** @var helper_plugin_move_plan $plan */
$plan = plugin_load('helper', 'move_plan');
$plan->abort();
parent::tearDown();
}
示例3: tearDown
/**
* @coversNothing
*/
public function tearDown()
{
/** @var helper_plugin_move_plan $plan */
$plan = plugin_load('helper', 'move_plan');
$plan->abort();
io_rmdir(DOKU_TMP_DATA . "pages/newns", true);
io_rmdir(DOKU_TMP_DATA . "media/newns", true);
io_rmdir(DOKU_TMP_DATA . "meta/newns", true);
parent::tearDown();
}
示例4: tearDown
/**
* @coversNothing
*/
public function tearDown()
{
global $conf;
$dirs = array('indexdir', 'datadir', 'metadir', 'mediadir');
foreach ($dirs as $dir) {
io_rmdir($conf[$dir], true);
mkdir($conf[$dir]);
}
$this->plan->abort();
parent::tearDown();
}
示例5: tearDown
public function tearDown()
{
parent::tearDown();
$this->db->query('DELETE FROM pages WHERE page = ?', 'test');
}
示例6: tearDown
function tearDown()
{
parent::tearDown();
}
示例7: tearDown
function tearDown()
{
$_FILES = $this->old_files;
parent::tearDown();
}