FixedInMemoryIntegrationTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 9 2
1
<?php
2
3
namespace Onoi\BlobStore\Tests\Integration;
4
5
use Onoi\BlobStore\BlobStore;
6
use Onoi\Cache\CacheFactory;
7
8
/**
9
 * @group onoi-blobstore
10
 *
11
 * @license GNU GPL v2+
12
 * @since 1.0
13
 *
14
 * @author mwjames
15
 */
16
class FixedInMemoryIntegrationTest extends BlobStoreIntegrationTestCase {
17
18
	protected function setUp() {
19
20
		if ( !class_exists( '\Onoi\Cache\CacheFactory' ) ) {
21
			$this->markTestSkipped( 'CacheFactory is not available' );
22
		}
23
24
		$cacheFactory = new CacheFactory();
25
		$this->cache = $cacheFactory->newFixedInMemoryLruCache( 500 );
26
	}
27
28
}
29