Index: trunk/phase3/tests/phpunit/includes/parser/PreprocessorTest.php |
— | — | @@ -131,6 +131,8 @@ |
132 | 132 | * @return string |
133 | 133 | */ |
134 | 134 | function normalizeXml( $xml ) { |
| 135 | + return preg_replace( '!<([a-z]+)/>!', '<$1></$1>', str_replace( ' />', '/>', $xml ) ); |
| 136 | + |
135 | 137 | $dom = new DOMDocument(); |
136 | 138 | // 1 << 19 == XML_PARSE_HUGE, needed so newer versions of libxml2 don't barf when the XML is >256 levels deep |
137 | 139 | $dom->loadXML( $xml, 1 << 19 ); |