| Conditions | 3 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | protected function setUp() { |
||
| 22 | |||
| 23 | $cache = array(); |
||
| 24 | $cacheFactory = new CacheFactory(); |
||
| 25 | |||
| 26 | $cache[] = $cacheFactory->newFixedInMemoryLruCache(); |
||
| 27 | |||
| 28 | if ( class_exists( '\HashBagOStuff' ) ) { |
||
| 29 | $cache[] = $cacheFactory->newMediaWikiCache( new HashBagOStuff() ); |
||
| 30 | } |
||
| 31 | |||
| 32 | if ( class_exists( '\Doctrine\Common\Cache\ArrayCache' ) ) { |
||
| 33 | $cache[] = $cacheFactory->newDoctrineCache( new ArrayCache() ); |
||
| 34 | } |
||
| 35 | |||
| 36 | $this->cache = $cacheFactory->newCompositeCache( $cache ); |
||
| 37 | } |
||
| 38 | |||
| 40 |