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.
8 * @addtogroup Maintenance
10 * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
11 * @copyright Copyright © 2005, 2006 Ævar Arnfjörð Bjarmason
12 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
15 $wgHooks['ParserTestParser'][] = 'wfParserTestParserHookSetup';
17 function wfParserTestParserHookSetup( &$parser ) {
18 $parser->setHook( 'tag', 'wfParserTestParserHookHook' );
23 function wfParserTestParserHookHook( $in, $argv ) {
29 $ret = ob_get_clean();
31 return "<pre>\n$ret</pre>";