aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/upload/UploadBaseTest.php
diff options
context:
space:
mode:
authorTim Starling <tstarling@wikimedia.org>2020-05-25 13:48:42 +1000
committerTim Starling <tstarling@wikimedia.org>2020-05-25 13:55:28 +1000
commitbd5420da23400bedceebe6e56cbe640c7271f00d (patch)
tree386c1459b0e4cf868cae78d56cfedf12f4131a54 /tests/phpunit/includes/upload/UploadBaseTest.php
parentfd138ee79f227181f29467bca341db39d9b9b97b (diff)
downloadmediawikicore-bd5420da23400bedceebe6e56cbe640c7271f00d.tar.gz
mediawikicore-bd5420da23400bedceebe6e56cbe640c7271f00d.zip
Call ob_start() before running tests
The policy introduced for T206476 creates a subtle failure mode: any test writing to stdout will cause headers to be sent, causing later tests to fail when they try to call header(). Instead, call ob_start() to intercept test output. Any buffered output is still seen when PHPUnit exits. Bug: T206476 Change-Id: Id085efeab67d1e700ffcbf37868b5107e3a7e5d5
Diffstat (limited to 'tests/phpunit/includes/upload/UploadBaseTest.php')
0 files changed, 0 insertions, 0 deletions