Clean up database cloning for tests.
authordaniel <daniel.kinzler@wikimedia.de>
Tue, 13 Nov 2012 16:48:15 +0000 (17:48 +0100)
committerdaniel <daniel.kinzler@wikimedia.de>
Fri, 16 Nov 2012 18:48:33 +0000 (19:48 +0100)
commitbe39c351d47d3b7d57e123f35ddc063ab1678a89
tree58ea5d77884ef4871dc2c09b92eced9ae568f0d6
parentc22e3597aa1d4a79672a678e974d8286f4bbda51
Clean up database cloning for tests.

This change makes the operation for overlaying the wiki database
with a structurally equivalent test database statically accessible,
and adds a function to revert that operation.

This is a precondition to logging profiling info to the database
after the test run has finished.

Change-Id: I2e8335d50eefcc7a97c1cd122b509f0939eacc92
tests/phpunit/MediaWikiTestCase.php