Completed
Push — master ( 68e5b2...8089c4 )
by smiley
02:27
created

FirebirdQueryTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 3 1
A testCreateDatabase() 0 11 1
1
<?php
2
/**
3
 *
4
 * @filesource   FirebirdQueryTest.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\PDOFirebirdDriver;
15
16
/**
17
 * Class FirebirdQueryTest
18
 */
19
class FirebirdQueryTest extends QueryTestAbstract{
20
21
	protected $driver = PDOFirebirdDriver::class;
22
	protected $envVar = 'DB_FIREBIRD_';
23
24
	public function setUp(){
25
		$this->markTestIncomplete('use the vagrant box...');
26
	}
27
28
	public function testCreateDatabase(){
29
		$this->assertSame(
30
			'CREATE DATABASE querytest DEFAULT CHARACTER SET UTF8',
31
			$this->createDatabase()->sql()
32
		);
33
34
		$this->assertSame(
35
			'CREATE DATABASE querytest DEFAULT CHARACTER SET UTF8 COLLATION UNICODE_CI_AI',
36
			$this->createDatabase()->charset('utf8_UNICODE_CI_AI')->sql()
37
		);
38
	}
39
40
}
41