@@ 19-47 (lines=29) @@ | ||
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 | public function testCreateTable(){ |
|
41 | ||
42 | var_dump($this->createTable()->sql()); |
|
43 | var_dump($this->createTable()->execute()); |
|
44 | $this->markTestIncomplete(); |
|
45 | } |
|
46 | ||
47 | } |
|
48 |
@@ 19-40 (lines=22) @@ | ||
16 | /** |
|
17 | * Class MySQLQueryTest |
|
18 | */ |
|
19 | class MySQLQueryTest extends QueryTestAbstract{ |
|
20 | ||
21 | protected $driver = MySQLiDriver::class; |
|
22 | protected $envVar = 'DB_MYSQLI_'; |
|
23 | ||
24 | public function testCreateDatabase(){ |
|
25 | $this->assertSame( |
|
26 | 'CREATE DATABASE querytest CHARACTER SET utf8', |
|
27 | $this->createDatabase()->sql() |
|
28 | ); |
|
29 | ||
30 | $this->assertSame( |
|
31 | 'CREATE DATABASE IF NOT EXISTS querytest CHARACTER SET utf8mb4 COLLATE utf8mb4_bin', |
|
32 | $this->createDatabase()->charset('utf8mb4_bin')->ifNotExists()->sql() |
|
33 | ); |
|
34 | } |
|
35 | ||
36 | public function testCreateTable(){ |
|
37 | var_dump($this->createTable()->sql()); |
|
38 | $this->markTestIncomplete(); |
|
39 | } |
|
40 | } |
|
41 |