From 87b5c2aedecb3083fc9ebbc5b8d70d575726a4e1 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Tue, 7 Feb 2012 08:45:56 -0500 Subject: [PATCH] A little test cleanup --- tests/databases/firebird.php | 5 +++-- tests/databases/sqlite.php | 6 ++++-- tests/test_dbs/FB_TEST_DB.FDB | Bin 802816 -> 802816 bytes 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/databases/firebird.php b/tests/databases/firebird.php index 343088d..fecd5f5 100644 --- a/tests/databases/firebird.php +++ b/tests/databases/firebird.php @@ -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'); } } \ No newline at end of file diff --git a/tests/databases/sqlite.php b/tests/databases/sqlite.php index 28ea562..a7fa83d 100644 --- a/tests/databases/sqlite.php +++ b/tests/databases/sqlite.php @@ -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'); } } \ No newline at end of file diff --git a/tests/test_dbs/FB_TEST_DB.FDB b/tests/test_dbs/FB_TEST_DB.FDB index 1b2c3157667e17383eab3d144b0b5a8956245582..d80e754043602111b2de7897d297d62248c159d3 100755 GIT binary patch delta 57 zcmV~$%K<xo(cm0?C4w(P| delta 57 zcmV~$%K<ltJ%=qoF{;p%nTQtAO6ty|K4nk&Mw0ZBWso9OMww)m JMb?+?yMC9a4wnD`