TestFixtureFactory::newInstance()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Tests\Queryr\EntityStore\Fixtures;
4
5
use Doctrine\DBAL\DriverManager;
6
7
class TestFixtureFactory {
8
9
	public static function newInstance() {
10
		return new self();
11
	}
12
13
	public function newConnection() {
14
		return DriverManager::getConnection( array(
15
			'driver' => 'pdo_sqlite',
16
			'memory' => true,
17
		) );
18
	}
19
20
}