Stash global only once per test case.
authordaniel <daniel.kinzler@wikimedia.de>
Thu, 25 Oct 2012 15:29:10 +0000 (17:29 +0200)
committerAntoine Musso <hashar@free.fr>
Mon, 29 Oct 2012 10:07:06 +0000 (11:07 +0100)
commit7385890cfee85f3a33e9c6448fe74fb7f9766cc4
tree0a4c1717df8000fa6e3bbcd7762a9b1d4d1956ca
parentd05ddf6e0649c843d4314b292102011d46e0ba08
Stash global only once per test case.

Make sure we only stash a given global only once per test case since we
do not want to override the original value.

This allows the same test to modify the same global multiple times,
while still preserving the original value to be restored after the
test case finished.

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