diff options
author | David <ottodavid@gmx.net> | 2014-08-05 23:02:07 +0200 |
---|---|---|
committer | David <ottodavid@gmx.net> | 2014-08-22 12:41:59 +0200 |
commit | 99bed7d1149749d6cc96c6b5b87cbac8682753ce (patch) | |
tree | b1177b399fe2563840f4ade1008e28041d008ed0 /tests/unit/Data/TDbDataReaderTest.php | |
parent | 189f927ff3dfe8dfa0adb62a66ab240e84c8eb54 (diff) |
Fix System.Data test cases
(cherry picked from commit c8682f71ca510b63d67bcf5c28e29992bfed94f2)
Diffstat (limited to 'tests/unit/Data/TDbDataReaderTest.php')
-rw-r--r-- | tests/unit/Data/TDbDataReaderTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit/Data/TDbDataReaderTest.php b/tests/unit/Data/TDbDataReaderTest.php index 98aa0385..d1f0b547 100644 --- a/tests/unit/Data/TDbDataReaderTest.php +++ b/tests/unit/Data/TDbDataReaderTest.php @@ -37,6 +37,10 @@ class TDbDataReaderTest extends PHPUnit_Framework_TestCase public function setUp() { @unlink(TEST_DB_FILE); + + // create application just to provide application mode + new TApplication(__DIR__, false ,TApplication::CONFIG_TYPE_PHP); + $this->_connection=new TDbConnection('sqlite:'.TEST_DB_FILE); $this->_connection->Active=true; $this->_connection->createCommand('CREATE TABLE foo (id INTEGER NOT NULL PRIMARY KEY, name VARCHAR(8))')->execute(); @@ -175,4 +179,4 @@ class TDbDataReaderTest extends PHPUnit_Framework_TestCase } } -?>
\ No newline at end of file +?> |