Completed
Push — master ( 47c098...6c95d6 )
by smiley
02:23
created

PDOFirebirdTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Class PDOFirebirdTest
4
 *
5
 * @filesource   PDOFirebirdTest.php
6
 * @created      29.05.2017
7
 * @package      chillerlan\DatabaseTest\Drivers
8
 * @author       Smiley <[email protected]>
9
 * @copyright    2017 Smiley
10
 * @license      MIT
11
 */
12
13
namespace chillerlan\DatabaseTest\Drivers;
14
15
use chillerlan\Database\Drivers\PDO\PDOFirebirdDriver;
16
17
class PDOFirebirdTest extends DriverTestAbstract{
18
19
	protected $driver = PDOFirebirdDriver::class;
20
	protected $envVar = 'DB_FIREBIRD_';
21
22
	protected $SQL_RAW_TRUNCATE   = 'RECREATE TABLE test (id INTEGER NOT NULL, hash VARCHAR(32) NOT NULL)';
23
	protected $SQL_RAW_DROP       = 'RECREATE TABLE test (id INTEGER NOT NULL, hash VARCHAR(32) NOT NULL)';
24
	protected $SQL_RAW_CREATE     = 'RECREATE TABLE test (id INTEGER NOT NULL, hash VARCHAR(32) NOT NULL)';
25
	protected $SQL_INDEX_COL      = 'ID';
26
	protected $SQL_DATA_COL       = 'HASH';
27
	protected $SQL_ESCAPED = "'''\\\\'''''";
28
	protected $SQL_QUOTES = ['\'', '\''];
29
	protected $SQL_DIALECT = 'firebird';
30
31
#	public function setUp(){
0 ignored issues
show
Unused Code Comprehensibility introduced by
58% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
32
#		$this->markTestIncomplete('use the vagrant box...');
33
#	}
34
}
35