From: Platonides Date: Tue, 19 Jul 2011 21:05:17 +0000 (+0000) Subject: Remove the globals. r91570 was wrong saying that parent::setUp() X-Git-Tag: 1.31.0-rc.0~28736 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=ecceeb75850629824f6cc0267deb7a7eea2e03e6;p=lhc%2Fweb%2Fwiklou.git 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. --- 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" );