X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FParserTestResultNormalizer.php;h=fbeed97bc0304ae1587a605f885c78b95bd9056d;hb=4a8c0bbdf58e625924fbaf03aeeb8692233c4e71;hp=37ed85f75dd93a05a21e5ade98f77daa83adc17e;hpb=237d3271fd313ebe09858a5c442a91216a7b61cf;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/ParserTestResultNormalizer.php b/tests/parser/ParserTestResultNormalizer.php index 37ed85f75d..fbeed97bc0 100644 --- a/tests/parser/ParserTestResultNormalizer.php +++ b/tests/parser/ParserTestResultNormalizer.php @@ -25,11 +25,11 @@ class ParserTestResultNormalizer { // guaranteed to give accurate results. For example, it may introduce // differences in the number of line breaks in
tags. - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); if ( !$this->doc->loadXML( '' . $text . '' ) ) { $this->invalid = true; } - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); $this->xpath = new DOMXPath( $this->doc ); $this->body = $this->xpath->query( '//body' )->item( 0 ); } @@ -78,6 +78,7 @@ class ParserTestResultNormalizer { /** * Serialize the XML DOM for comparison purposes. This does not generate HTML. + * @return string */ protected function serialize() { return strtr( $this->doc->saveXML( $this->body ),