Log profiling data when tests have finished.
authordaniel <daniel.kinzler@wikimedia.de>
Tue, 13 Nov 2012 16:51:32 +0000 (17:51 +0100)
committerdaniel <daniel.kinzler@wikimedia.de>
Fri, 16 Nov 2012 19:14:29 +0000 (20:14 +0100)
commite606537090ebbd93cc0413d74e8347869336e7d0
tree035b05aac4d4d029dfa63d28b5ea884c2e3efb6a
parentbe39c351d47d3b7d57e123f35ddc063ab1678a89
Log profiling data when tests have finished.

Previously, no profiling data was recorded from unit test runs.
That made it impossible to a) use unit tests for selective profiling
of individual functions, and b) made it impossibel to profile
the tests themselves.

This change fixes this problem by calling wfLogProfilingData()
after the test runner has finished.

Thaks to Hashar for some ideas, especially the fix in GlobalFunctions.

Change-Id: Iaa295115f3c4eb3b529388dcd953fe8932448b3e
includes/GlobalFunctions.php
tests/phpunit/MediaWikiPHPUnitCommand.php