protected function tearDown()
 {
     unset($this->t);
     unset($this->context);
     parent::tearDown();
     return;
 }
 public function tearDown()
 {
     // turn off caching again.
     global $wgMainCacheType;
     $wgMainCacheType = $this->oldcache;
     parent::tearDown();
 }
 public function tearDown()
 {
     global $wgShowEXIF, $wgEnableAutoRotation;
     $wgShowEXIF = $this->show;
     $wgEnableAutoRotation = $this->oldAuto;
     parent::tearDown();
 }
 protected function tearDown()
 {
     $this->test_wrapper->destroyManuscriptsTest();
     unset($this->test_wrapper);
     unset($this->t);
     parent::tearDown();
 }
 protected function tearDown()
 {
     $this->database_test_instance_creator->destroyManuscriptsTest();
     unset($this->database_test_instance_creator);
     unset($this->t);
     parent::tearDown();
 }
 protected function tearDown()
 {
     parent::tearDown();
     $fcache = BloomCache::get('main');
     if ($fcache instanceof BloomCacheRedis) {
         $fcache->delete("unit-testing-" . self::$suffix);
     }
 }
 protected function tearDown()
 {
     foreach (glob($this->tmpPrefix . '*') as $directory) {
         $this->deleteFilesRecursively($directory);
     }
     unlink($this->tmpFilepath);
     parent::tearDown();
 }
 protected function tearDown()
 {
     global $wgReadOnlyFile;
     if (file_exists($wgReadOnlyFile)) {
         unlink($wgReadOnlyFile);
     }
     parent::tearDown();
 }
 function tearDown()
 {
     foreach ($this->engines as $engine) {
         $engine->destroy();
     }
     $this->engines = array();
     parent::tearDown();
 }
 protected function tearDown()
 {
     parent::tearDown();
     if ($this->functionTest) {
         $this->dropFunctions();
         $this->functionTest = false;
     }
 }
 function tearDown()
 {
     // Restore $wgServer and $wgCanonicalServer
     global $wgServer, $wgCanonicalServer;
     $wgServer = $this->oldServer;
     $wgCanonicalServer = $this->oldCanServer;
     parent::tearDown();
 }
 public function tearDown()
 {
     $dbw = wfGetDB(DB_MASTER);
     // Clean up the mess we made...
     $dbw->delete('user', '*', __METHOD__);
     $dbw->delete('spoofuser', '*', __METHOD__);
     parent::tearDown();
 }
 public function tearDown()
 {
     if (strlen($this->tempFileName) > 0) {
         unlink($this->tempFileName);
         unset($this->tempFileName);
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     global $wgContLang;
     // Reset namespace cache
     MWNamespace::getCanonicalNamespaces(true);
     $wgContLang->resetNamespaces();
     parent::tearDown();
 }
 public function tearDown()
 {
     foreach ($this->unsetReqVals as $v) {
         MobileContext::singleton()->getRequest()->unsetVal($v);
     }
     MobileContext::setInstance(null);
     // refresh MobileContext instance
     parent::tearDown();
 }
 public function tearDown()
 {
     global $wgContLang, $wgLang, $wgLanguageCode;
     $wgLang = self::$oldLang;
     $wgContLang = self::$oldContLang;
     $wgLanguageCode = $wgContLang->getCode();
     self::$oldContLang = self::$oldLang = null;
     parent::tearDown();
 }
Exemple #17
0
 protected function tearDown()
 {
     parent::tearDown();
     if ($this->functionTest) {
         $this->dropFunctions();
         $this->functionTest = false;
     }
     $this->db->restoreFlags(IDatabase::RESTORE_INITIAL);
 }
 function tearDown()
 {
     global $wgContLang;
     MWNamespace::getCanonicalNamespaces(true);
     # reset namespace cache
     $wgContLang->resetNamespaces();
     # reset namespace cache
     parent::tearDown();
 }
 protected function tearDown()
 {
     if ($this->dump !== null) {
         $this->dump->close();
     }
     // Bug 37458, parent teardown need to be done after closing the
     // dump or it might cause some permissions errors.
     parent::tearDown();
 }
Exemple #20
0
 protected function tearDown()
 {
     parent::tearDown();
     foreach (['queueRand', 'queueRandTTL', 'queueTimestamp', 'queueTimestampTTL', 'queueFifo', 'queueFifoTTL'] as $q) {
         if ($this->{$q}) {
             $this->{$q}->delete();
         }
         $this->{$q} = null;
     }
 }
 protected function tearDown()
 {
     global $wgContLang;
     // Reset namespace cache
     MWNamespace::getCanonicalNamespaces(true);
     $wgContLang->resetNamespaces();
     // And LinkCache
     MediaWikiServices::getInstance()->resetServiceForTesting('LinkCache');
     parent::tearDown();
 }
 protected function tearDown()
 {
     if (file_exists($this->bug29408File . ".")) {
         unlink($this->bug29408File . ".");
     }
     if (file_exists($this->bug29408File)) {
         unlink($this->bug29408File);
     }
     parent::tearDown();
 }
Exemple #23
0
 public function tearDown()
 {
     parent::tearDown();
     if (file_exists($this->bug29408File . ".")) {
         unlink($this->bug29408File . ".");
     }
     if (file_exists($this->bug29408File)) {
         unlink($this->bug29408File);
     }
 }
 protected function tearDown()
 {
     global $wgContLang;
     // Reset namespace cache
     MWNamespace::getCanonicalNamespaces(true);
     $wgContLang->resetNamespaces();
     // And LinkCache
     LinkCache::destroySingleton();
     parent::tearDown();
 }
 protected function tearDown()
 {
     $obLevel = ob_get_level();
     while (ob_get_level() > $this->obLevel) {
         ob_end_clean();
     }
     if ($obLevel !== $this->obLevel) {
         $this->fail("Test changed output buffer level: was {$this->obLevel} before test, but {$obLevel} after test.");
     }
     parent::tearDown();
 }
 protected function tearDown()
 {
     global $wgExtraNamespaces, $wgNamespaceContentModels, $wgContentHandlers, $wgContLang;
     parent::tearDown();
     unset($wgExtraNamespaces[12312]);
     unset($wgExtraNamespaces[12313]);
     unset($wgNamespaceContentModels[12312]);
     unset($wgContentHandlers['DUMMY']);
     MWNamespace::getCanonicalNamespaces(true);
     # reset namespace cache
     $wgContLang->resetNamespaces();
     # reset namespace cache
 }
 protected function tearDown()
 {
     $this->repo->cleanupBatch($this->createdFiles);
     // delete files
     foreach ($this->createdFiles as $tmp) {
         // delete dirs
         $tmp = $this->repo->resolveVirtualUrl($tmp);
         while ($tmp = FileBackend::parentStoragePath($tmp)) {
             $this->repo->getBackend()->clean(array('dir' => $tmp));
         }
     }
     parent::tearDown();
 }
 protected function tearDown()
 {
     global $wgGroupPermissions;
     global $wgUser;
     $wgGroupPermissions = $this->originalGroupPermissions;
     if ($this->originalUser) {
         // should not be null, but sometimes, it is
         $wgUser = $this->originalUser;
     }
     if ($wgUser) {
         // should not be null, but sometimes, it is
         // reset rights cache
         $wgUser->addGroup("dummy");
         $wgUser->removeGroup("dummy");
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     WikibaseRepo::getDefaultInstance()->getSettings()->setSetting('allowEntityImport', $this->saveAllowImport);
     parent::tearDown();
 }
Exemple #30
0
 protected function tearDown()
 {
     if ($this->m) {
         $this->m->simulateShutdown();
         $this->m = null;
     }
     parent::tearDown();
 }