diff options
Diffstat (limited to 'tests/unit/Data/TDbDataReaderTest.php')
-rw-r--r-- | tests/unit/Data/TDbDataReaderTest.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/unit/Data/TDbDataReaderTest.php b/tests/unit/Data/TDbDataReaderTest.php index 98aa0385..2e31245e 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(); @@ -174,5 +178,3 @@ class TDbDataReaderTest extends PHPUnit_Framework_TestCase $this->assertEquals($name,'my name 2'); } } - -?>
\ No newline at end of file |