X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FParserTestResultNormalizer.php;h=caa19b151d2bbb387e5abedcc937ac43c8c475c6;hb=e0be7e8f26110c1ae0e32b7a176fd1649daf0dc1;hp=61aa0d795f58c974c3e5f274e6c58f6d1e95cfa3;hpb=0be80f9680ae5acba1931f18fdecd0e3c634d6a6;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/ParserTestResultNormalizer.php b/tests/parser/ParserTestResultNormalizer.php index 61aa0d795f..caa19b151d 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 ); } @@ -47,7 +47,7 @@ class ParserTestResultNormalizer { /** * The point of this function is to produce a normalized DOM in which - * Tidy's output matches the output of html5depurate. Tidy both trims + * Tidy's output matches the output of RemexHtml. Tidy both trims * and pretty-prints, so this requires fairly aggressive treatment. * * In particular, note that Tidy convertsxto\nx\n,