An extension for English Wiktionary needs access to the arguments of its invoking template. The following diff shows my proposed change to Parser.php to expose those arguments:
Index: includes/Parser.php =================================================================== --- includes/Parser.php (revision 16050) +++ includes/Parser.php (working copy) @@ -3000,7 +3000,9 @@
if( $this->mOutputType == OT_HTML ) { # Strip <nowiki>, <pre>, etc. + array_push( $this->mArgStack, $assocArgs ); $text = $this->strip( $text, $this-
mStripState );
+ array_pop( $this->mArgStack ); $text = Sanitizer::removeHTMLtags( $text, array( &$this, 'replaceVariables' ), $assocArgs ); } $text = $this->replaceVariables( $text, $assocArgs );
The change above works on my installation, but is there some standard place for me to add a phpunit test for that change?
--Rod
wikitech-l@lists.wikimedia.org