本文整理汇总了PHP中Backend::clearInstances方法的典型用法代码示例。如果您正苦于以下问题:PHP Backend::clearInstances方法的具体用法?PHP Backend::clearInstances怎么用?PHP Backend::clearInstances使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Backend
的用法示例。
在下文中一共展示了Backend::clearInstances方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
public function tearDown() {
unlink($GLOBALS['alias_file']);
unset($GLOBALS['alias_file']);
//clear the cache between each tests
Backend::clearInstances();
EventManager::clearInstance();
}
示例2: tearDown
function tearDown()
{
//clear the cache between each tests
Backend::clearInstances();
rmdir($GLOBALS['svn_prefix'] . '/' . 'toto');
unset($GLOBALS['svn_prefix']);
unset($GLOBALS['tmp_dir']);
unset($GLOBALS['svn_root_file']);
unset($GLOBALS['sys_dbname']);
unset($GLOBALS['sys_name']);
unset($GLOBALS['sys_dbauth_user']);
unset($GLOBALS['sys_dbauth_passwd']);
}
示例3: tearDown
function tearDown()
{
system('rm -rf ' . escapeshellarg($GLOBALS['cvs_prefix'] . '/TestProj'));
system('rm -rf ' . escapeshellarg($GLOBALS['cvslock_prefix'] . '/TestProj'));
//clear the cache between each tests
Backend::clearInstances();
rmdir($GLOBALS['cvs_prefix'] . '/' . 'toto');
unset($GLOBALS['cvs_prefix']);
unset($GLOBALS['cvslock_prefix']);
unset($GLOBALS['tmp_dir']);
unset($GLOBALS['cvs_cmd']);
unset($GLOBALS['cvs_root_allow_file']);
}
示例4: tearDown
function tearDown()
{
//clear the cache between each tests
Backend::clearInstances();
exec('rm -rf ' . escapeshellarg($this->tmp_dir));
unset($GLOBALS['svn_prefix']);
unset($GLOBALS['tmp_dir']);
unset($GLOBALS['svn_root_file']);
unset($GLOBALS['sys_dbname']);
unset($GLOBALS['sys_name']);
unset($GLOBALS['sys_dbauth_user']);
unset($GLOBALS['sys_dbauth_passwd']);
ForgeConfig::restore();
}
示例5: tearDown
function tearDown()
{
//clear the cache between each tests
Backend::clearInstances();
$this->recurseDeleteInDir($GLOBALS['svn_prefix'] . '/toto/hooks');
rmdir($GLOBALS['svn_prefix'] . '/toto/hooks');
rmdir($GLOBALS['svn_prefix'] . '/toto');
unset($GLOBALS['svn_prefix']);
unset($GLOBALS['tmp_dir']);
unset($GLOBALS['svn_root_file']);
unset($GLOBALS['sys_dbname']);
unset($GLOBALS['sys_name']);
unset($GLOBALS['sys_dbauth_user']);
unset($GLOBALS['sys_dbauth_passwd']);
ForgeConfig::restore();
}
示例6: tearDown
function tearDown()
{
//clear the cache between each tests
Backend::clearInstances();
unset($GLOBALS['homedir_prefix']);
unset($GLOBALS['grpdir_prefix']);
unset($GLOBALS['codendi_shell_skel']);
unset($GLOBALS['tmp_dir']);
unset($GLOBALS['ftp_frs_dir_prefix']);
unset($GLOBALS['ftp_anon_dir_prefix']);
unset($GLOBALS['sys_file_deletion_delay']);
unset($GLOBALS['sys_custom_incdir']);
unset($GLOBALS['sys_incdir']);
$logfile = $GLOBALS['codendi_log'] . '/codendi_syslog';
if (is_file($logfile)) {
unlink($logfile);
}
unset($GLOBALS['codendi_log']);
}
示例7: tearDown
function tearDown() {
//clear the cache between each tests
Backend::clearInstances();
EventManager::clearInstance();
}
示例8: tearDown
function tearDown()
{
unset($GLOBALS['alias_file']);
//clear the cache between each tests
Backend::clearInstances();
}