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();
$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
$params = new Stdclass();

View File

@ -21,7 +21,7 @@ class FirebirdTest extends DBTest {
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
$this->db = new Firebird('localhost:'.$dbpath);

View File

@ -21,7 +21,7 @@
{
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->type = 'sqlite';
$params->file = $path;

View File

@ -26,7 +26,7 @@ class SQLiteTest extends UnitTestCase {
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);
}

View File

@ -47,14 +47,12 @@ foreach(pdo_drivers() as $d)
if(is_dir($src_dir))
{
require_once("{$test_path}{$d}.php");
require_once("{$test_path}{$d}-qb.php");
array_map('do_include', glob("{$test_path}{$d}/{$d}*.php"));
}
}
// Load Firebird if there is support
if(function_exists('fbird_connect'))
{
require_once("{$test_path}firebird.php");
require_once("{$test_path}firebird-qb.php");
array_map('do_include', glob("{$test_path}/firebird/firebird*.php"));
}