]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - maintenance/parserTestsParserHook.php
MediaWiki 1.17.0
[autoinstallsdev/mediawiki.git] / maintenance / parserTestsParserHook.php
diff --git a/maintenance/parserTestsParserHook.php b/maintenance/parserTestsParserHook.php
deleted file mode 100644 (file)
index f55cd0e..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-if ( ! defined( 'MEDIAWIKI' ) )
-       die( -1 );
-/**
- * A basic extension that's used by the parser tests to test whether input and
- * arguments are passed to extensions properly.
- *
- * @file
- * @ingroup Maintenance
- *
- * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- * @copyright Copyright © 2005, 2006 Ævar Arnfjörð Bjarmason
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
- */
-
-$wgHooks['ParserTestParser'][] = 'wfParserTestParserHookSetup';
-
-function wfParserTestParserHookSetup( &$parser ) {
-       $parser->setHook( 'tag', 'wfParserTestParserHookHook' );
-
-       return true;
-}
-
-function wfParserTestParserHookHook( $in, $argv ) {
-       ob_start();
-       var_dump(
-               $in,
-               $argv
-       );
-       $ret = ob_get_clean();
-
-       return "<pre>\n$ret</pre>";
-}
-