dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "rdbms: set the schema in the LBFactory local domain"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
ExportTest.php
diff --git
a/tests/phpunit/includes/ExportTest.php
b/tests/phpunit/includes/ExportTest.php
index
a2bb97a
..
a5d3570
100644
(file)
--- a/
tests/phpunit/includes/ExportTest.php
+++ b/
tests/phpunit/includes/ExportTest.php
@@
-30,14
+30,14
@@
class ExportTest extends MediaWikiLangTestCase {
$title = Title::newFromText( $pageTitle );
$title = Title::newFromText( $pageTitle );
- ob_start();
+ $sink = new DumpStringOutput;
+ $exporter->setOutputSink( $sink );
$exporter->openStream();
$exporter->pageByTitle( $title );
$exporter->closeStream();
$exporter->openStream();
$exporter->pageByTitle( $title );
$exporter->closeStream();
- $xmlString = ob_get_clean();
// This throws error if invalid xml output
// This throws error if invalid xml output
- $xmlObject = simplexml_load_string( $
xmlString
);
+ $xmlObject = simplexml_load_string( $
sink
);
/**
* Check namespaces match xml
/**
* Check namespaces match xml