bawolff wrote: >You're calling the recursiveTagParse while the parser is not in a "parsing" >state.
Thanks for the explanation. >The easiest way to do this is to have some text "yadda yadda<mytag>foo</mytag>" >and pass it to $wgParser->parse I tried this: $this->assertEquals($wgParser->parse("<mytag>foo</mytag>", Title:newFromText("some page"), new ParserOptions), 'the output here'); but parse() produces weird artifacts like <!--LINK 2:3--> in the output, which are not predictable as unit test output. Any suggestions to prevent this? DanB _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l