REST: call MediaWiki::preOutputCommit and doPostOutputShutdown
authorTim Starling <tstarling@wikimedia.org>
Fri, 16 Aug 2019 04:38:48 +0000 (14:38 +1000)
committerTim Starling <tstarling@wikimedia.org>
Mon, 26 Aug 2019 04:19:43 +0000 (14:19 +1000)
commit86693df2470314e220c0f4d027e7d84174929209
treeb5a5fd05a767cade46f4e31a354d87179844038b
parente59c70814e916154bc1bf96916c93f68c4212cc1
REST: call MediaWiki::preOutputCommit and doPostOutputShutdown

As in api.php. Among other things, this enables profiling.

Move EntryPoint test out of unit/ so that it passes.

Use ob_start()/ob_end_clean() instead of assuming an output buffer is
open, so that EntryPoint::execute() can be run from CLI mode.

Change-Id: I38162a9eac6fd5acfed2035b87cac4a97ffd50d6
includes/Rest/EntryPoint.php
tests/phpunit/includes/Rest/EntryPointTest.php [new file with mode: 0644]
tests/phpunit/unit/includes/Rest/EntryPointTest.php [deleted file]