Index: trunk/phase3/maintenance/tests/phpunit/bootstrap.php |
— | — | @@ -73,4 +73,4 @@ |
74 | 74 | return null; |
75 | 75 | } |
76 | 76 | } |
77 | | -} |
\ No newline at end of file |
| 77 | +} |
Index: trunk/phase3/maintenance/tests/phpunit/includes/GlobalTest.php |
— | — | @@ -2,10 +2,11 @@ |
3 | 3 | |
4 | 4 | class GlobalTest extends PHPUnit_Framework_TestCase { |
5 | 5 | function setUp() { |
6 | | - global $wgReadOnlyFile; |
| 6 | + global $wgReadOnlyFile, $wgContLang, $wgLang; |
7 | 7 | $this->originals['wgReadOnlyFile'] = $wgReadOnlyFile; |
8 | 8 | $wgReadOnlyFile = tempnam( wfTempDir(), "mwtest_readonly" ); |
9 | 9 | unlink( $wgReadOnlyFile ); |
| 10 | + $wgContLang = $wgLang = Language::factory( 'en' ); |
10 | 11 | } |
11 | 12 | |
12 | 13 | function tearDown() { |