當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。