MediaWikiCacheIntegrationTest::setUp()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
c 0
b 0
f 0
rs 9.4285
cc 2
eloc 4
nc 2
nop 0
1
<?php
2
3
namespace Onoi\Cache\Tests\Integration;
4
5
use HashBagOStuff;
6
use Onoi\Cache\MediaWikiCache;
7
8
/**
9
 * @group onoi-cache
10
 *
11
 * @license GNU GPL v2+
12
 * @since 1.1
13
 *
14
 * @author mwjames
15
 */
16
class MediaWikiCacheIntegrationTest extends CacheIntegrationTestCase {
17
18
	protected $cache;
19
20
	protected function setUp() {
21
22
		if ( !class_exists( '\HashBagOStuff' ) ) {
23
			$this->markTestSkipped( 'HashBagOStuff is not available' );
24
		}
25
26
		$this->cache = new MediaWikiCache( new HashBagOStuff() );
27
	}
28
29
}
30