Merge "Code style cleanups to parserTest.inc and NewParserTest.php."
[lhc/web/wiklou.git] / tests / parser / parserTest.inc
index 3ca28c6..92c03cd 100644 (file)
@@ -434,7 +434,12 @@ class ParserTest {
         */
        public function runTestsFromFiles( $filenames ) {
                $ok = false;
+
+               // be sure, ParserTest::addArticle has correct language set,
+               // so that system messages gets into the right language cache
+               $GLOBALS['wgLanguageCode'] = 'en';
                $GLOBALS['wgContLang'] = Language::factory( 'en' );
+
                $this->recorder->start();
                try {
                        $this->setupDatabase();