This faking is needed to avoid Table 'unittest_objectcache' doesn't exist errors when using temporary tables.
}
function run( PHPUnit_Framework_TestResult $result = NULL ) {
- global $wgCaches;
/* Some functions require some kind of caching, and will end up using the db,
* which we can't allow, as that would open a new connection for mysql.
* Replace with a HashBag. They would not be going to persist anyway.
*/
- $wgCaches[CACHE_DB] = new HashBagOStuff;
+ ObjectCache::$instances[CACHE_DB] = new HashBagOStuff;
if( $this->needsDB() ) {