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