aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit')
-rwxr-xr-xtests/phpunit/phpunit.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/phpunit/phpunit.php b/tests/phpunit/phpunit.php
index edceb1603c0a..223e18147c41 100755
--- a/tests/phpunit/phpunit.php
+++ b/tests/phpunit/phpunit.php
@@ -61,6 +61,10 @@ class PHPUnitMaintClass extends Maintenance {
exit( 1 );
}
+ // Start an output buffer to avoid headers being sent by constructors,
+ // data providers, etc. (T206476)
+ ob_start();
+
fwrite( STDERR, 'Using PHP ' . PHP_VERSION . "\n" );
foreach ( MediaWikiCliOptions::$additionalOptions as $option => $default ) {