Completed
Push — master ( d508c6...ead087 )
by smiley
02:37
created

FirebirdQueryTest::testCreateTable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 7
Ratio 100 %

Importance

Changes 0
Metric Value
dl 7
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
/**
3
 * Class FirebirdQueryTest
4
 *
5
 * @filesource   FirebirdQueryTest.php
6
 * @created      12.06.2017
7
 * @package      chillerlan\DatabaseTest\Query
8
 * @author       Smiley <[email protected]>
9
 * @copyright    2017 Smiley
10
 * @license      MIT
11
 */
12
13
namespace chillerlan\DatabaseTest\Query;
14
15
use chillerlan\Database\Drivers\PDO\PDOFirebirdDriver;
16
17
class FirebirdQueryTest extends QueryTestAbstract{
18
19
	protected $driver = PDOFirebirdDriver::class;
20
	protected $envVar = 'DB_FIREBIRD_';
21
22
	public function setUp(){
23
		$this->markTestSkipped('use the vagrant box...');
24
	}
25
26
	public function testCreateDatabase(){
27
		$this->assertSame(
28
			'CREATE DATABASE "vagrant" DEFAULT CHARACTER SET UTF8',
29
			$this->createDatabase()->sql()
30
		);
31
32
		$this->assertSame(
33
			'CREATE DATABASE "vagrant" DEFAULT CHARACTER SET UTF8 COLLATION UNICODE_CI_AI',
34
			$this->createDatabase()->charset('utf8_UNICODE_CI_AI')->sql()
35
		);
36
	}
37
38
39
}
40