A little test cleanup

This commit is contained in:
Timothy Warren 2012-02-07 08:45:56 -05:00
parent 444a8a1778
commit 87b5c2aede
3 changed files with 7 additions and 4 deletions

View File

@ -28,11 +28,12 @@ class FirebirdTest extends UnitTestCase {
function __construct()
{
parent::__construct();
$this->db = new Firebird(dirname(__FILE__)."/../test_dbs/FB_TEST_DB.FDB");
}
function TestConnection()
{
$this->firebird = new Firebird(dirname(__FILE__)."/../test_dbs/FB_TEST_DB.FDB");
$this->assertIsA($this->firebird, 'Firebird');
$this->assertIsA($this->db, 'Firebird');
}
}

View File

@ -28,11 +28,13 @@ class SQLiteTest extends UnitTestCase {
function __construct()
{
parent::__construct();
$this->db = new SQLite("./test_dbs/test_sqlite.db");
}
function TestConnection()
{
$this->sqlite = new SQLite("./test_dbs/test_sqlite.db");
$this->assertIsA($this->sqlite, 'SQLite');
$this->assertIsA($this->db, 'SQLite');
}
}

Binary file not shown.