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

PDOSQLiteMemoryTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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