396bb7d4e9410e8089dbd322259560c2ba6a62b5
2 if (!defined('MEDIAWIKI')) die();
4 * A basic extension that's used by the parser tests to test whether input and
5 * arguments are passed to extensions properly.
8 * @subpackage Maintenance
10 * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
11 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
14 $wgHooks['ParserTestParser'][] = 'wfParserTestSetup';
16 function wfParserTestSetup( &$parser ) {
17 $parser->setHook( 'tag', 'wfParserTestHook' );
20 function wfParserTestHook( $in, $argv ) {
22 return "<pre>\n" . print_r( $argv, true ) . '</pre>';