Followup r80375: let PreprocessorTest work on Preprocessor_Hash etc as well as Prepro...
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 15 Oct 2011 20:21:52 +0000 (20:21 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 15 Oct 2011 20:21:52 +0000 (20:21 +0000)
commit61bb13a24a43ce78310424cd25f043cc6394b20e
treed3870672b06d2e0243a431dc1b025e307a7e2e2b
parentb4ff889d31459b1e3c7add8861eb8a3a48a5a23d
Followup r80375: let PreprocessorTest work on Preprocessor_Hash etc as well as Preprocessor_Dom

Using same technique as ApiExpandTemplates to serialize the object tree back to XML, rather than asking for the DOM implementation's internal XML return function.
Have to also perform normalization on the test cases, as they aren't normalized to what libxml2 serializes. :P

Note that there are 4 test failures currently with Preprocessor_Hash, as it makes a separate <equals> element around = which doesn't appear to be in Preprocessor_Dom's output.
tests/phpunit/includes/parser/PreprocessorTest.php