FixedInMemoryIntegrationTest::setUp()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 2
eloc 5
nc 2
nop 0
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