本文整理汇总了PHP中ForgeConfig::restore方法的典型用法代码示例。如果您正苦于以下问题:PHP ForgeConfig::restore方法的具体用法?PHP ForgeConfig::restore怎么用?PHP ForgeConfig::restore使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ForgeConfig
的用法示例。
在下文中一共展示了ForgeConfig::restore方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
public function tearDown()
{
if (is_file(ForgeConfig::get('codendi_log') . '/tv3_to_tv5.log')) {
unlink(ForgeConfig::get('codendi_log') . '/tv3_to_tv5.log');
}
ForgeConfig::restore();
parent::tearDown();
}
示例2: tearDown
function tearDown()
{
ForgeConfig::restore();
setlocale(LC_ALL, $this->oldLocale);
unset($GLOBALS['tmp_dir']);
unset($GLOBALS['sys_incdir']);
unset($GLOBALS['sys_custom_incdir']);
}
示例3: itHasALogFileFromConfiguration
public function itHasALogFileFromConfiguration()
{
ForgeConfig::store();
ForgeConfig::set(SVN_Apache_SvnrootConf::CONFIG_SVN_LOG_PATH, '${APACHE_LOG_DIR}/tuleap_svn.log');
$conf = $this->GivenAFullApacheConfWithModPerl();
$this->assertPattern('%\\${APACHE_LOG_DIR}/tuleap_svn\\.log%', $conf);
ForgeConfig::restore();
}
示例4: tearDown
public function tearDown()
{
foreach (glob($this->thumbnails_dir . '/*') as $f) {
if ($f != '.' && $f != '..') {
unlink($f);
}
}
rmdir($this->thumbnails_dir);
ForgeConfig::restore();
parent::tearDown();
}
示例5: tearDown
function tearDown()
{
UserManager::clearInstance();
unset($GLOBALS['Language']);
unset($GLOBALS['Response']);
unset($GLOBALS['sys_default_domain']);
unset($GLOBALS['sys_force_ssl']);
unset($GLOBALS['sys_https_host']);
unset($GLOBALS['group_id']);
unset($_REQUEST['type_of_search']);
ForgeConfig::restore();
parent::tearDown();
}
示例6: tearDown
public function tearDown()
{
ForgeConfig::restore();
$this->mysqli->query('DELETE FROM groups WHERE unix_group_name = "short-name"');
unset($GLOBALS['svn_prefix']);
unset($GLOBALS['cvs_prefix']);
unset($GLOBALS['grpdir_prefix']);
unset($GLOBALS['ftp_frs_dir_prefix']);
unset($GLOBALS['ftp_anon_dir_prefix']);
unset($GLOBALS['sys_default_domain']);
unset($GLOBALS['sys_cookie_prefix']);
unset($GLOBALS['sys_force_ssl']);
parent::tearDown();
}
示例7: 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']);
ForgeConfig::restore();
}
示例8: tearDown
function tearDown()
{
$tmpdir = $this->cache_dir . '/lang/';
$fd = opendir($tmpdir);
while (false !== ($file = readdir($fd))) {
if (is_file($tmpdir . '/' . $file)) {
unlink($tmpdir . '/' . $file);
}
}
unset($GLOBALS['sys_incdir']);
unset($GLOBALS['sys_pluginsroot']);
unset($GLOBALS['sys_themeroot']);
unset($GLOBALS['sys_custom_incdir']);
unset($GLOBALS['sys_custompluginsroot']);
unset($GLOBALS['sys_custom_themeroot']);
ForgeConfig::restore();
parent::tearDown();
}
示例9: tearDown
public function tearDown()
{
ForgeConfig::restore();
$this->mysqli->query('DELETE FROM groups WHERE unix_group_name = "short-name"');
unset($GLOBALS['svn_prefix']);
unset($GLOBALS['cvs_prefix']);
unset($GLOBALS['grpdir_prefix']);
unset($GLOBALS['ftp_frs_dir_prefix']);
unset($GLOBALS['ftp_anon_dir_prefix']);
unset($GLOBALS['sys_default_domain']);
unset($GLOBALS['sys_cookie_prefix']);
unset($GLOBALS['sys_force_ssl']);
$GLOBALS['sys_pluginsroot'] = $this->old_sys_pluginsroot;
$GLOBALS['sys_custompluginsroot'] = $this->old_sys_custompluginsroot;
EventManager::clearInstance();
PluginManager::instance()->invalidateCache();
PluginFactory::clearInstance();
$GLOBALS = $this->old_globals;
parent::tearDown();
}
示例10: 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']);
ForgeConfig::restore();
$logfile = $GLOBALS['codendi_log'] . '/codendi_syslog';
if (is_file($logfile)) {
unlink($logfile);
}
unset($GLOBALS['codendi_log']);
}
示例11: tearDown
public function tearDown()
{
ForgeConfig::restore();
$GLOBALS['Language'] = $this->global_language;
parent::tearDown();
}
示例12: tearDown
public function tearDown()
{
parent::tearDown();
unset($GLOBALS['Response']);
ForgeConfig::restore();
}
示例13: tearDown
public function tearDown()
{
try {
$sys_data_dir_arg = escapeshellarg($GLOBALS['sys_data_dir']);
$this->system_command->exec("sudo -u gitolite /usr/share/tuleap/plugins/git/bin/gl-delete-test-repository.sh {$sys_data_dir_arg}/gitolite/repositories/test_project");
} catch (Exception $e) {
//ignore errors
}
parent::tearDown();
$GLOBALS['sys_data_dir'] = $this->old_sys_data_dir;
ForgeConfig::restore();
PermissionsManager::clearInstance();
PluginManager::clearInstance();
UserManager::clearInstance();
unset($GLOBALS['tmp_dir']);
//revert gitolite driver setAdminPath in its builder
chdir($this->old_cwd);
}
示例14: tearDown
public function tearDown()
{
parent::tearDown();
unlink('/tmp/hooks.json');
ForgeConfig::restore();
}
示例15: tearDown
public function tearDown()
{
exec('rm -rf ' . escapeshellarg($this->cache_dir));
ForgeConfig::restore();
parent::tearDown();
}