* Ensures values don't survive the unit test run.
* Ensures a clean state for each test.
Change-Id: I94e1ac14096fb4c4071fe9960d9465e60f27a89d
*/
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() ) {