Cleaned up img_auth code and re-integrated core img-auth- messages.
[lhc/web/wiklou.git] / maintenance / parserTests.inc
index 8525594..924310a 100644 (file)
@@ -367,6 +367,12 @@ class ParserTest {
                                                $section = null;
                                                continue;
                                        }
+                                       if ( preg_match('/\\bmath\\b/i', $data['options']) && !$this->savedGlobals['wgUseTeX'] ) {
+                                               # don't run math tests if $wgUseTeX is set to false in LocalSettings
+                                               $data = array();
+                                               $section = null;
+                                               continue;
+                                       }
                                        $result = $this->runTest(
                                                $this->chomp( $data['test'] ),
                                                $this->chomp( $data['input'] ),
@@ -670,6 +676,7 @@ class ParserTest {
                $GLOBALS['wgLang'] = $langObj;
                $GLOBALS['wgContLang'] = $langObj;
                $GLOBALS['wgMemc'] = new FakeMemCachedClient;
+               $GLOBALS['wgOut'] = new OutputPage;
 
                //$GLOBALS['wgMessageCache'] = new MessageCache( new BagOStuff(), false, 0, $GLOBALS['wgDBname'] );