protected function tearDown() { global $wgContLang; // Reset namespace cache MWNamespace::getCanonicalNamespaces(true); $wgContLang->resetNamespaces(); // And LinkCache LinkCache::destroySingleton(); parent::tearDown(); }