MediaWikiCacheIntegrationTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 14
c 0
b 0
f 0
wmc 2
lcom 1
cbo 2
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 8 2
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