Completed
Push — master ( 612476...c205d6 )
by smiley
04:22
created

PDOSQLiteMemoryTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 4
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 7 1
1
<?php
2
/**
3
 * Class PDOSQLiteMemoryTest
4
 *
5
 * @filesource   PDOSQLiteMemoryTest.php
6
 * @created      29.05.2017
7
 * @package      chillerlan\DatabaseTest\Drivers
8
 * @author       Smiley <[email protected]>
9
 * @copyright    2017 Smiley
10
 * @license      MIT
11
 */
12
13
namespace chillerlan\DatabaseTest\Drivers;
14
15
use chillerlan\SimpleCache\Cache;
16
use chillerlan\SimpleCache\Drivers\MemoryCacheDriver;
17
18
class PDOSQLiteMemoryTest extends SQLiteDriverTestAbstract{
19
20
	protected function setUp(){
21
		parent::setUp();
22
23
		$this->Cache = new Cache(new MemoryCacheDriver);
24
		$this->DBOptions->database = ':memory:';
25
		$this->DBDriver = (new $this->driver($this->DBOptions, $this->Cache))->connect();
26
	}
27
28
}
29