Reset RequestContext between tests
authorMax Semenik <maxsem.wiki@gmail.com>
Fri, 27 Jun 2014 17:59:47 +0000 (10:59 -0700)
committerMax Semenik <maxsem.wiki@gmail.com>
Fri, 27 Jun 2014 17:59:47 +0000 (10:59 -0700)
commit859aa193597e0ef955cbabddf379a62f97e25d14
tree871769c56584db71dc7b2d6025ae0fe0d70ecb0d
parentf11fba6d85df62007029e32c82b66bb1da137938
Reset RequestContext between tests

Its state can change when people do something with objects it returns or
when they alter globals like $wgRequest. By resetting this singleton, we
ensure that no such change will propagate outside of a test.

Change-Id: I7e8598716d810a09c17f80a05deecab617b62346
includes/context/RequestContext.php
tests/phpunit/MediaWikiTestCase.php