X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FExportTest.php;h=a5d357066b3e9d1ebc7beb080ba234b5af125e27;hb=8a95833baed3b8071fcbd8cd2bc8c3449409f665;hp=c07708158b22125b9eb3d75d0090f1bde4cedc50;hpb=cb506aecdfe6356b5a848858f1d6c04f6c7821f6;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