DoctrineCacheIntegrationTest   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 Doctrine\Common\Cache\ArrayCache;
6
use Onoi\Cache\DoctrineCache;
7
8
/**
9
 * @group onoi-cache
10
 *
11
 * @license GNU GPL v2+
12
 * @since 1.1
13
 *
14
 * @author mwjames
15
 */
16
class DoctrineCacheIntegrationTest extends CacheIntegrationTestCase {
17
18
	protected $cache;
19
20
	protected function setUp() {
21
22
		if ( !class_exists( '\Doctrine\Common\Cache\ArrayCache' ) ) {
23
			$this->markTestSkipped( 'ArrayCache is not available' );
24
		}
25
26
		$this->cache = new DoctrineCache( new ArrayCache() );
27
	}
28
29
}
30