r92576 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r92575
|
r92576
|
r92577
>
Date:
21:05, 19 July 2011
Author:
platonides
Status:
ok
Tags:
Comment:
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.
Modified paths:
/trunk/phase3/tests/phpunit/includes/GlobalFunctions/GlobalTest.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/tests/phpunit/includes/GlobalFunctions/GlobalTest.php
—
—
@@ -2,8 +2,7 @@
3
3
4
4
class GlobalTest extends MediaWikiTestCase {
5
5
function setUp() {
6
- global $wgReadOnlyFile, $wgContLang, $wgLang, $wgUrlProtocols, $wgLanguageCode;
7
- parent::setUp();
6
+ global $wgReadOnlyFile, $wgUrlProtocols;
8
7
$this->originals['wgReadOnlyFile'] = $wgReadOnlyFile;
9
8
$this->originals['wgUrlProtocols'] = $wgUrlProtocols;
10
9
$wgReadOnlyFile = tempnam( wfTempDir(), "mwtest_readonly" );
Follow-up revisions
Revision
Commit summary
Author
Date
r92586
Merge code cleanup revisions so that code analysis can also be performed in t...
platonides
21:29, 19 July 2011
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r91570
Call parent::setUp() and allow it to do lang setup stuff
demon
17:58, 6 July 2011
Status & tagging log
21:15, 19 July 2011
😂
(
talk
|
contribs
)
changed the
status
of r92576
[
removed:
new
added:
ok]