本文整理汇总了PHP中ThinkUpUnitTestCase::tearDown方法的典型用法代码示例。如果您正苦于以下问题:PHP ThinkUpUnitTestCase::tearDown方法的具体用法?PHP ThinkUpUnitTestCase::tearDown怎么用?PHP ThinkUpUnitTestCase::tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ThinkUpUnitTestCase
的用法示例。
在下文中一共展示了ThinkUpUnitTestCase::tearDown方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
public function tearDown()
{
$this->builder1 = null;
$this->builder2 = null;
$this->builder3 = null;
parent::tearDown();
}
示例2: tearDown
public function tearDown()
{
$this->builders = null;
parent::tearDown();
$this->logger->close();
$this->DAO = null;
}
示例3: tearDown
public function tearDown()
{
$this->builders = null;
parent::tearDown();
//make sure our db_type is set to the default...
Config::getInstance()->setValue('db_type', 'mysql');
}
示例4: tearDown
public function tearDown()
{
parent::tearDown();
$this->logger->close();
// clear options cache
PluginOptionMySQLDAO::$cached_options = array();
}
示例5: tearDown
public function tearDown()
{
parent::tearDown();
$this->logger->close();
//clear doesOwnerHaveAccessToPost query cache
OwnerInstanceMySQLDAO::$post_access_query_cache = array();
}
示例6: tearDown
public function tearDown()
{
$this->builders = null;
$this->logger->close();
$this->instance = null;
$this->api = null;
parent::tearDown();
}
示例7: 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");
}
}
示例8: tearDown
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();
}
示例9: 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);
}
}
示例10: tearDown
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);
}
}
示例11: tearDown
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);
}
}
示例12: tearDown
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);
}
}
示例13: tearDown
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';
}
示例14: tearDown
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();
}
示例15: 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();
}
}