From: Reedy Date: Sun, 9 Dec 2012 02:37:10 +0000 (+0000) Subject: Remove unreachable lines X-Git-Tag: 1.31.0-rc.0~21369^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=1bff6d74281292a7987c8684403e741ce4498723;p=lhc%2Fweb%2Fwiklou.git Remove unreachable lines Change-Id: Ie7ec14f4ce65bc87b0cd49ec9266c394770ee7c4 --- diff --git a/tests/phpunit/includes/parser/PreprocessorTest.php b/tests/phpunit/includes/parser/PreprocessorTest.php index 362d9f7426..8b83b674aa 100644 --- a/tests/phpunit/includes/parser/PreprocessorTest.php +++ b/tests/phpunit/includes/parser/PreprocessorTest.php @@ -119,7 +119,7 @@ class PreprocessorTest extends MediaWikiTestCase { if ( method_exists( $this->mPreprocessor, 'preprocessToXml' ) ) { return $this->normalizeXml( $this->mPreprocessor->preprocessToXml( $wikiText ) ); } - + $dom = $this->mPreprocessor->preprocessToObj( $wikiText ); if ( is_callable( array( $dom, 'saveXML' ) ) ) { return $dom->saveXML(); @@ -136,11 +136,6 @@ class PreprocessorTest extends MediaWikiTestCase { */ function normalizeXml( $xml ) { return preg_replace( '!<([a-z]+)/>!', '<$1>', str_replace( ' />', '/>', $xml ) ); - - $dom = new DOMDocument(); - // 1 << 19 == XML_PARSE_HUGE, needed so newer versions of libxml2 don't barf when the XML is >256 levels deep - $dom->loadXML( $xml, 1 << 19 ); - return $dom->saveXML(); } /**