Krinkle has uploaded a new change for review. https://gerrit.wikimedia.org/r/240683
Change subject: phpunit: Replace APC with HashBagOStuff during a test ...................................................................... phpunit: Replace APC with HashBagOStuff during a test * Ensures values don't survive the unit test run. * Ensures a clean state for each test. Change-Id: I94e1ac14096fb4c4071fe9960d9465e60f27a89d --- M tests/phpunit/MediaWikiTestCase.php 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/83/240683/1 diff --git a/tests/phpunit/MediaWikiTestCase.php b/tests/phpunit/MediaWikiTestCase.php index 7dc7027..49c7ad3 100644 --- a/tests/phpunit/MediaWikiTestCase.php +++ b/tests/phpunit/MediaWikiTestCase.php @@ -103,6 +103,12 @@ */ ObjectCache::$instances[CACHE_DB] = new HashBagOStuff; + // Sandbox APC by replacing with in-process hash cache instead. + // Ensures tests are removed between tests. + ObjectCache::$instances['apc'] = + ObjectCache::$instances['xcache'] = + ObjectCache::$instances['wincache'] = new HashBagOStuff; + $needsResetDB = false; if ( $this->needsDB() ) { -- To view, visit https://gerrit.wikimedia.org/r/240683 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I94e1ac14096fb4c4071fe9960d9465e60f27a89d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Krinkle <krinklem...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits