Completed
Push — master ( ffbb02...68e5b2 )
by smiley
02:42
created

SQLiteQueryTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testCreateDatabase() 0 6 1
A testCreateDatabaseNoName() 0 3 1
1
<?php
2
/**
3
 *
4
 * @filesource   SQLiteQueryTest.php
5
 * @created      12.06.2017
6
 * @package      chillerlan\DatabaseTest\Query
7
 * @author       Smiley <[email protected]>
8
 * @copyright    2017 Smiley
9
 * @license      MIT
10
 */
11
12
namespace chillerlan\DatabaseTest\Query;
13
14
use chillerlan\Database\Drivers\PDO\PDOSQLiteDriver;
15
16
/**
17
 * Class SQLiteQueryTest
18
 */
19
class SQLiteQueryTest extends QueryTestAbstract{
20
21
	protected $driver = PDOSQLiteDriver::class;
22
	protected $envVar = 'DB_SQLITE3_';
23
24
	public function testCreateDatabase(){
25
		$this->assertSame(
26
			'--NOT SUPPORTED',
27
			$this->createDatabase()->sql()
28
		);
29
	}
30
31
	public function testCreateDatabaseNoName(){
32
		$this->markTestSkipped('[sqlite] create database not supported');
33
	}
34
35
}
36