From ca32f08966f1b51fcb19460f0996bb0c4048e6fe Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 3 Dec 2011 13:29:22 +0100 Subject: Update to MediaWiki 1.18.0 * also update ArchLinux skin to chagnes in MonoBook * Use only css to hide our menu bar when printing --- tests/parser/parserTestsParserHook.php | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 tests/parser/parserTestsParserHook.php (limited to 'tests/parser/parserTestsParserHook.php') diff --git a/tests/parser/parserTestsParserHook.php b/tests/parser/parserTestsParserHook.php new file mode 100644 index 00000000..324b8e5c --- /dev/null +++ b/tests/parser/parserTestsParserHook.php @@ -0,0 +1,46 @@ + + */ + +class ParserTestParserHook { + + static function setup( &$parser ) { + $parser->setHook( 'tag', array( __CLASS__, 'dumpHook' ) ); + + return true; + } + + static function dumpHook( $in, $argv ) { + ob_start(); + var_dump( + $in, + $argv + ); + $ret = ob_get_clean(); + + return "
\n$ret
"; + } +} -- cgit v1.2.3-54-g00ecf