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(); }
function tearDown() { ForgeConfig::restore(); setlocale(LC_ALL, $this->oldLocale); unset($GLOBALS['tmp_dir']); unset($GLOBALS['sys_incdir']); unset($GLOBALS['sys_custom_incdir']); }
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(); }
public function tearDown() { foreach (glob($this->thumbnails_dir . '/*') as $f) { if ($f != '.' && $f != '..') { unlink($f); } } rmdir($this->thumbnails_dir); ForgeConfig::restore(); parent::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(); }
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(); }
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(); }
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(); }
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(); }
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']); }
public function tearDown() { ForgeConfig::restore(); $GLOBALS['Language'] = $this->global_language; parent::tearDown(); }
public function tearDown() { parent::tearDown(); unset($GLOBALS['Response']); ForgeConfig::restore(); }
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); }
public function tearDown() { parent::tearDown(); unlink('/tmp/hooks.json'); ForgeConfig::restore(); }
public function tearDown() { exec('rm -rf ' . escapeshellarg($this->cache_dir)); ForgeConfig::restore(); parent::tearDown(); }
function tearDown() { ForgeConfig::restore(); }
public function tearDown() { ForgeConfig::restore(); UserManager::clearInstance(); parent::tearDown(); }
public function tearDown() { exec('rm -rf ' . escapeshellarg($this->tmp_dir)); unset($this->svn_prefix); ForgeConfig::restore(); parent::tearDown(); }
function tearDown() { ForgeConfig::restore(); ForgeConfig::set('codendi_log', $this->previous_log_dir); unset($GLOBALS['Language']); }
public function tearDown() { ForgeConfig::restore(); rmdir($this->root_dir_path . 'project_01'); parent::tearDown(); }
public function tearDown() { unset($GLOBALS['Language']); ForgeConfig::restore(); parent::tearDown(); }
public function tearDown() { ForgeConfig::restore(); $_SERVER['REMOTE_ADDR'] = $this->previous_remote_addr; }
public function tearDown() { parent::tearDown(); ForgeConfig::restore(); putenv("HOME=" . $this->old_homedir); }
public function tearDown() { ForgeConfig::restore(); PermissionsOverrider_PermissionsOverriderManager::clearInstance(); parent::tearDown(); }
public function tearDown() { $this->recurseDeleteInDir($this->svn_prefix . '/toto'); rmdir($this->svn_prefix . '/toto'); unset($this->svn_prefix); ForgeConfig::restore(); parent::tearDown(); }
public function tearDown() { $this->recurseDeleteInDir($this->fixture_dir); rmdir($this->fixture_dir); ForgeConfig::restore(); parent::tearDown(); }
function tearDown() { unset($GLOBALS['sys_noreply']); ForgeConfig::restore(); }
public function tearDown() { ForgeConfig::restore(); parent::tearDown(); }
public function tearDown() { ForgeConfig::restore(); parent::tearDown(); $this->recurseDeleteInDir($this->tmpdir); rmdir($this->tmpdir); }