rearranged tests
This commit is contained in:
parent
ab34a7c0fc
commit
de34e24325
@ -21,7 +21,7 @@ class FirebirdQBTest extends QBTest {
|
|||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
$dbpath = TEST_DIR.DS.'test_dbs'.DS.'FB_TEST_DB.FDB';
|
$dbpath = TEST_DIR.DS.'db_files'.DS.'FB_TEST_DB.FDB';
|
||||||
|
|
||||||
// Test the query builder
|
// Test the query builder
|
||||||
$params = new Stdclass();
|
$params = new Stdclass();
|
@ -21,7 +21,7 @@ class FirebirdTest extends DBTest {
|
|||||||
|
|
||||||
function setUp()
|
function setUp()
|
||||||
{
|
{
|
||||||
$dbpath = TEST_DIR.DS.'test_dbs'.DS.'FB_TEST_DB.FDB';
|
$dbpath = TEST_DIR.DS.'db_files'.DS.'FB_TEST_DB.FDB';
|
||||||
|
|
||||||
// Test the db driver directly
|
// Test the db driver directly
|
||||||
$this->db = new Firebird('localhost:'.$dbpath);
|
$this->db = new Firebird('localhost:'.$dbpath);
|
@ -21,7 +21,7 @@
|
|||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
$path = TEST_DIR.DS.'test_dbs'.DS.'test_sqlite.db';
|
$path = TEST_DIR.DS.'db_files'.DS.'test_sqlite.db';
|
||||||
$params = new Stdclass();
|
$params = new Stdclass();
|
||||||
$params->type = 'sqlite';
|
$params->type = 'sqlite';
|
||||||
$params->file = $path;
|
$params->file = $path;
|
@ -26,7 +26,7 @@ class SQLiteTest extends UnitTestCase {
|
|||||||
|
|
||||||
function setUp()
|
function setUp()
|
||||||
{
|
{
|
||||||
$path = TEST_DIR.DS.'test_dbs'.DS.'test_sqlite.db';
|
$path = TEST_DIR.DS.'db_files'.DS.'test_sqlite.db';
|
||||||
$this->db = new SQLite($path);
|
$this->db = new SQLite($path);
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Binary file not shown.
@ -47,14 +47,12 @@ foreach(pdo_drivers() as $d)
|
|||||||
|
|
||||||
if(is_dir($src_dir))
|
if(is_dir($src_dir))
|
||||||
{
|
{
|
||||||
require_once("{$test_path}{$d}.php");
|
array_map('do_include', glob("{$test_path}{$d}/{$d}*.php"));
|
||||||
require_once("{$test_path}{$d}-qb.php");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load Firebird if there is support
|
// Load Firebird if there is support
|
||||||
if(function_exists('fbird_connect'))
|
if(function_exists('fbird_connect'))
|
||||||
{
|
{
|
||||||
require_once("{$test_path}firebird.php");
|
array_map('do_include', glob("{$test_path}/firebird/firebird*.php"));
|
||||||
require_once("{$test_path}firebird-qb.php");
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user