r72609 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72608‎ | r72609 | r72610 >
Date:20:38, 8 September 2010
Author:platonides
Status:ok
Tags:
Comment:
Initialise wgContLang and $wgLang.
Follow up r72566.
Modified paths:
  • /trunk/phase3/maintenance/tests/phpunit/bootstrap.php (modified) (history)
  • /trunk/phase3/maintenance/tests/phpunit/includes/GlobalTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/tests/phpunit/bootstrap.php
@@ -73,4 +73,4 @@
7474 return null;
7575 }
7676 }
77 -}
\ No newline at end of file
 77+}
Index: trunk/phase3/maintenance/tests/phpunit/includes/GlobalTest.php
@@ -2,10 +2,11 @@
33
44 class GlobalTest extends PHPUnit_Framework_TestCase {
55 function setUp() {
6 - global $wgReadOnlyFile;
 6+ global $wgReadOnlyFile, $wgContLang, $wgLang;
77 $this->originals['wgReadOnlyFile'] = $wgReadOnlyFile;
88 $wgReadOnlyFile = tempnam( wfTempDir(), "mwtest_readonly" );
99 unlink( $wgReadOnlyFile );
 10+ $wgContLang = $wgLang = Language::factory( 'en' );
1011 }
1112
1213 function tearDown() {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r72566Merged reorganization work for PHPUnit from branches/phpunit-restructure/tparscal23:02, 7 September 2010

Status & tagging log