X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FExportTest.php;h=a5d357066b3e9d1ebc7beb080ba234b5af125e27;hb=06ba5ca383e29262cbf248bd42859e09acc6563f;hp=c07708158b22125b9eb3d75d0090f1bde4cedc50;hpb=5e9df2809a0b0f55e08d56dbbbc684a4122c3370;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/ExportTest.php b/tests/phpunit/includes/ExportTest.php index c07708158b..a5d357066b 100644 --- a/tests/phpunit/includes/ExportTest.php +++ b/tests/phpunit/includes/ExportTest.php @@ -35,10 +35,9 @@ class ExportTest extends MediaWikiLangTestCase { $exporter->openStream(); $exporter->pageByTitle( $title ); $exporter->closeStream(); - $xmlString = $sink->getOutput(); // This throws error if invalid xml output - $xmlObject = simplexml_load_string( $xmlString ); + $xmlObject = simplexml_load_string( $sink ); /** * Check namespaces match xml