*/ 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
"; } }