Remove the globals. r91570 was wrong saying that parent::setUp()
authorPlatonides <platonides@users.mediawiki.org>
Tue, 19 Jul 2011 21:05:17 +0000 (21:05 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Tue, 19 Jul 2011 21:05:17 +0000 (21:05 +0000)
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

index 7833e43..bfd0ac1 100644 (file)
@@ -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" );