public function tearDown() { $this->builder1 = null; $this->builder2 = null; $this->builder3 = null; parent::tearDown(); }
public function tearDown() { $this->builders = null; parent::tearDown(); $this->logger->close(); $this->DAO = null; }
public function tearDown() { $this->builders = null; parent::tearDown(); //make sure our db_type is set to the default... Config::getInstance()->setValue('db_type', 'mysql'); }
public function tearDown() { parent::tearDown(); $this->logger->close(); // clear options cache PluginOptionMySQLDAO::$cached_options = array(); }
public function tearDown() { parent::tearDown(); $this->logger->close(); //clear doesOwnerHaveAccessToPost query cache OwnerInstanceMySQLDAO::$post_access_query_cache = array(); }
public function tearDown() { $this->builders = null; $this->logger->close(); $this->instance = null; $this->api = null; parent::tearDown(); }
public function tearDown() { parent::tearDown(); if (getenv("TEST_TIMING") == "1") { list($usec, $sec) = explode(" ", microtime()); $finish = (double) $usec + (double) $sec; $runtime = round($finish - $this->start); printf($runtime . " seconds\n"); } }
public function tearDown() { parent::tearDown(); MockUpgradeApplicationController::$current_exception = false; //Clean up test installation files $test_app_dir = THINKUP_WEBAPP_PATH . 'test_installer'; if (file_exists($test_app_dir)) { exec('rm -rf ' . $test_app_dir); } parent::tearDown(); }
public function tearDown() { parent::tearDown(); $zipfile = THINKUP_WEBAPP_PATH . BackupDAO::CACHE_DIR . '/thinkup_db_backup.zip'; $backup_dir = THINKUP_WEBAPP_PATH . BackupDAO::CACHE_DIR . '/backup'; if(file_exists($zipfile)) { unlink($zipfile); } if(file_exists($backup_dir)) { $this->recursiveDelete($backup_dir); } }
public function tearDown() { parent::tearDown(); $config = Config::getInstance(); $config->setValue("mandrill_api_key", ""); // delete test email file if it exists $test_email = FileDataManager::getDataPath(Mailer::EMAIL); if (file_exists($test_email)) { unlink($test_email); } }
public function tearDown() { parent::tearDown(); if(file_exists($this->backup_file)) { unlink($this->backup_file); } if(file_exists($this->backup_test)) { unlink($this->backup_test); } if(file_exists($this->backup_dir)) { unlink($this->backup_dir); } }
public function tearDown() { parent::tearDown(); $zipfile = FileDataManager::getBackupPath('.htthinkup_db_backup.zip'); $backup_dir = FileDataManager::getBackupPath(); if (file_exists($zipfile)) { unlink($zipfile); } if (file_exists($backup_dir)) { $this->recursiveDelete($backup_dir); } }
public function tearDown() { parent::tearDown(); if (file_exists($this->backup_file)) { unlink($this->backup_file); } if (file_exists($this->backup_test)) { unlink($this->backup_test); } if (file_exists($this->backup_dir)) { unlink($this->backup_dir); } //set zip class requirement class name back BackupController::$zip_class_req = 'ZipArchive'; }
public function tearDown() { if (file_exists($this->export_test)) { unlink($this->export_test); } self::deleteFile('posts.tmp'); self::deleteFile('links.tmp'); self::deleteFile('encoded_locations.tmp'); self::deleteFile('favorites.tmp'); self::deleteFile('follows.tmp'); self::deleteFile('follower_count.tmp'); self::deleteFile('users_from_posts.tmp'); self::deleteFile('users_followees.tmp'); self::deleteFile('users_followers.tmp'); //set zip class requirement class name back BackupController::$zip_class_req = 'ZipArchive'; $this->builders = null; parent::tearDown(); }
public function tearDown(){ parent::tearDown(); $config = Config::getInstance(); //reset app version $config->setValue('THINKUP_VERSION', $this->init_db_version); /** delete files if needed **/ // delete token if(file_exists($this->token_file)) { unlink($this->token_file); } // delete migration test files if(isset($this->test_migrations) && count($this->test_migrations) > 0) { foreach($this->test_migrations as $file) { if(file_exists($file)) { unlink($file); } } $this->test_migrations = array(); } }
public function tearDown() { parent::tearDown(); StreamMessageQueueFactory::$queue = null; }
public function tearDown() { parent::tearDown(); }
public function tearDown() { parent::tearDown(); $this->logger->close(); }
public function tearDown() { $this->builders = null; parent::tearDown(); }
public function tearDown() { parent::tearDown(); putenv("MODE=TESTS"); $_SESSION["MODE"] = "TESTS"; }
public function tearDown() { // Clean up any database changes we made parent::tearDown(); }
public function tearDown() { $config = Config::getInstance(); $config->setValue('use_db_sessions', true); parent::tearDown(); }
public function tearDown() { parent::tearDown(); GridController::$MAX_ROWS = 5000; }
public function tearDown() { Config::destroyInstance(); parent::tearDown(); }
public function tearDown() { $this->dao = null; parent::tearDown(); }
public function tearDown() { // $this->builders = null; parent::tearDown(); StreamMessageQueueFactory::$queue = null; }
public function tearDown() { // truncate data.... StreamDataMySQLDAO::$PDO->query("truncate table " . $this->table_prefix . 'stream_data'); parent::tearDown(); }
/** * Destructs the database, so it can be reconstructed for next test */ public function tearDown() { parent::tearDown(); $this->DAO = null; }