From 5c451dde19d4b2f13954ce91944384d317913bd0 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 23 Sep 2004 00:45:49 +0000 Subject: [PATCH] Cleaning up checkin conflict: remove Wil's parserTransform() function as this is superceded by setting the globals to a known initial state. --- maintenance/parserTests.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/maintenance/parserTests.php b/maintenance/parserTests.php index 8028c83dd9..96f5e53dd4 100644 --- a/maintenance/parserTests.php +++ b/maintenance/parserTests.php @@ -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 -- 2.20.1