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


PHP Backend::clearInstances方法代码示例

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

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

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

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

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

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

示例7: tearDown

 function tearDown() {
     //clear the cache between each tests
     Backend::clearInstances();
     EventManager::clearInstance();
 }
开发者ID:rinodung,项目名称:tuleap,代码行数:5,代码来源:BackendTest.php

示例8: tearDown

 function tearDown()
 {
     unset($GLOBALS['alias_file']);
     //clear the cache between each tests
     Backend::clearInstances();
 }
开发者ID:nterray,项目名称:tuleap,代码行数:6,代码来源:BackendAliasesTest.php


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