Index: trunk/phase3/tests/phpunit/MediaWikiTestCase.php |
— | — | @@ -30,12 +30,11 @@ |
31 | 31 | } |
32 | 32 | |
33 | 33 | function run( PHPUnit_Framework_TestResult $result = NULL ) { |
34 | | - global $wgCaches; |
35 | 34 | /* Some functions require some kind of caching, and will end up using the db, |
36 | 35 | * which we can't allow, as that would open a new connection for mysql. |
37 | 36 | * Replace with a HashBag. They would not be going to persist anyway. |
38 | 37 | */ |
39 | | - $wgCaches[CACHE_DB] = new HashBagOStuff; |
| 38 | + ObjectCache::$instances[CACHE_DB] = new HashBagOStuff; |
40 | 39 | |
41 | 40 | if( $this->needsDB() ) { |
42 | 41 | |