2 if ( ! defined( 'MEDIAWIKI' ) )
5 * A basic extension that's used by the parser tests to test whether input and
6 * arguments are passed to extensions properly.
11 * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
12 * @copyright Copyright © 2005, 2006 Ævar Arnfjörð Bjarmason
13 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
16 $wgHooks['ParserTestParser'][] = 'wfParserTestParserHookSetup';
18 function wfParserTestParserHookSetup( &$parser ) {
19 $parser->setHook( 'tag', 'wfParserTestParserHookHook' );
24 function wfParserTestParserHookHook( $in, $argv ) {
30 $ret = ob_get_clean();
32 return "<pre>\n$ret</pre>";