Cleaning up checkin conflict: remove Wil's parserTransform() function as
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 23 Sep 2004 00:45:49 +0000 (00:45 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 23 Sep 2004 00:45:49 +0000 (00:45 +0000)
this is superceded by setting the globals to a known initial state.

maintenance/parserTests.php

index 8028c83..96f5e53 100644 (file)
@@ -65,7 +65,7 @@ class ParserTest {
                                        if( $this->runTest(
                                                rtrim( $data['test'] ),
                                                rtrim( $data['input'] ),
-                                               $this->resultTransform(rtrim( $data['result'] ) ) ) ) {
+                                               rtrim( $data['result'] ) ) ) {
                                                $success++;
                                        }
                                        $total++;
@@ -89,19 +89,6 @@ class ParserTest {
                }
        }
 
-       /**
-        * Substitute simple variables to allow for slightly more
-        * sophisticated tests.
-        * @access private
-        */
-       function resultTransform($text) {
-               $rep = array (
-                       '__SCRIPT__' => $GLOBALS['wgScript']
-               );
-               $text = str_replace(array_keys($rep), array_values($rep), $text);
-               return $text;
-       }
-
        /**
         * @param string $input Wikitext to try rendering
         * @param string $result Result to output