Merge "Add SPARQL client to core"
[lhc/web/wiklou.git] / tests / parser / ParserTestResultNormalizer.php
index 37ed85f..fbeed97 100644 (file)
@@ -25,11 +25,11 @@ class ParserTestResultNormalizer {
                // guaranteed to give accurate results. For example, it may introduce
                // differences in the number of line breaks in <pre> tags.
 
-               MediaWiki\suppressWarnings();
+               Wikimedia\suppressWarnings();
                if ( !$this->doc->loadXML( '<html><body>' . $text . '</body></html>' ) ) {
                        $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 ),