rearranged tests

This commit is contained in:
Timothy Warren 2012-04-11 11:48:56 -04:00
parent ab34a7c0fc
commit de34e24325
13 changed files with 6 additions and 8 deletions

View File

@ -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();

View File

@ -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);

View File

@ -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;

View File

@ -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);
} }

View File

@ -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");
} }