Page MenuHomePhabricator

Rework/Analyse output buffer situation in integration tests around "MediaWikiIntegrationTestCase::wfResetOutputBuffersBarrier" for PHPUnit 10 compatibility
Closed, ResolvedPublic

Description

Running tests under PHPUnit 10 sometimes fails with output buffer errors (like "Test code or tested code did not close its own output buffers" and "Test code or tested code closed output buffers other than its own").

PHPUnit stops its own output buffer now before calling teardown when assertions on output are used, which makes the flush of the barrier (added in setup) to late.

Upstream related: