当前位置: 首页>>代码示例>>PHP>>正文


PHP ForgeConfig::restore方法代码示例

本文整理汇总了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();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:8,代码来源:MigrateTrackerTest.php

示例2: tearDown

 function tearDown()
 {
     ForgeConfig::restore();
     setlocale(LC_ALL, $this->oldLocale);
     unset($GLOBALS['tmp_dir']);
     unset($GLOBALS['sys_incdir']);
     unset($GLOBALS['sys_custom_incdir']);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:8,代码来源:BaseLanguageFactoryTest.php

示例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();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:8,代码来源:SVN_Apache_SvnrootConfTest.php

示例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();
 }
开发者ID:pdaniel-frk,项目名称:tuleap,代码行数:11,代码来源:Tracker_FormElement_Field_FileTest.php

示例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();
 }
开发者ID:uniteddiversity,项目名称:tuleap,代码行数:13,代码来源:URLVerificationTest.php

示例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();
 }
开发者ID:ansarbek,项目名称:tuleap,代码行数:14,代码来源:ProjectImportTest.php

示例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();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:14,代码来源:BackendCVSTest.php

示例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();
 }
开发者ID:ranjanasim,项目名称:tuleap,代码行数:18,代码来源:BaseLanguageTest.php

示例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();
 }
开发者ID:AdriandeCita,项目名称:tuleap,代码行数:20,代码来源:ProjectImportTest.php

示例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']);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:20,代码来源:BackendSystemTest.php

示例11: tearDown

 public function tearDown()
 {
     ForgeConfig::restore();
     $GLOBALS['Language'] = $this->global_language;
     parent::tearDown();
 }
开发者ID:KjellZijlemaker,项目名称:tuleap,代码行数:6,代码来源:SiteCacheTest.php

示例12: tearDown

 public function tearDown()
 {
     parent::tearDown();
     unset($GLOBALS['Response']);
     ForgeConfig::restore();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:6,代码来源:PermissionsManagerTest.php

示例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);
 }
开发者ID:LouisRenWeiWei,项目名称:tuleap,代码行数:18,代码来源:GitXmlImporterTest.php

示例14: tearDown

 public function tearDown()
 {
     parent::tearDown();
     unlink('/tmp/hooks.json');
     ForgeConfig::restore();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:6,代码来源:PluginManagerTest.php

示例15: tearDown

 public function tearDown()
 {
     exec('rm -rf ' . escapeshellarg($this->cache_dir));
     ForgeConfig::restore();
     parent::tearDown();
 }
开发者ID:blestab,项目名称:tuleap,代码行数:6,代码来源:TemporaryFileManagerTest.php


注:本文中的ForgeConfig::restore方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。