From ecceeb75850629824f6cc0267deb7a7eea2e03e6 Mon Sep 17 00:00:00 2001 From: Platonides Date: Tue, 19 Jul 2011 21:05:17 +0000 Subject: [PATCH] Remove the globals. r91570 was wrong saying that parent::setUp() would initialise those vars (this class parent is MediaWikiTestCase, not MediaWikiLangTestCase) but the language doesn't seem to matter. --- tests/phpunit/includes/GlobalFunctions/GlobalTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/phpunit/includes/GlobalFunctions/GlobalTest.php b/tests/phpunit/includes/GlobalFunctions/GlobalTest.php index 7833e43a3c..bfd0ac1986 100644 --- a/tests/phpunit/includes/GlobalFunctions/GlobalTest.php +++ b/tests/phpunit/includes/GlobalFunctions/GlobalTest.php @@ -2,8 +2,7 @@ class GlobalTest extends MediaWikiTestCase { function setUp() { - global $wgReadOnlyFile, $wgContLang, $wgLang, $wgUrlProtocols, $wgLanguageCode; - parent::setUp(); + global $wgReadOnlyFile, $wgUrlProtocols; $this->originals['wgReadOnlyFile'] = $wgReadOnlyFile; $this->originals['wgUrlProtocols'] = $wgUrlProtocols; $wgReadOnlyFile = tempnam( wfTempDir(), "mwtest_readonly" ); -- 2.20.1