diff options
Diffstat (limited to 'tests/unit/Data')
-rw-r--r-- | tests/unit/Data/TDbCommandTest.php | 6 | ||||
-rw-r--r-- | tests/unit/Data/TDbConnectionTest.php | 6 | ||||
-rw-r--r-- | tests/unit/Data/TDbDataReaderTest.php | 6 | ||||
-rw-r--r-- | tests/unit/Data/TDbTransactionTest.php | 6 | ||||
-rw-r--r-- | tests/unit/Data/runtime/.gitignore | 2 |
5 files changed, 22 insertions, 4 deletions
diff --git a/tests/unit/Data/TDbCommandTest.php b/tests/unit/Data/TDbCommandTest.php index a75674bf..ab2a4435 100644 --- a/tests/unit/Data/TDbCommandTest.php +++ b/tests/unit/Data/TDbCommandTest.php @@ -15,6 +15,10 @@ class TDbCommandTest 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(); @@ -217,4 +221,4 @@ class TDbCommandTest extends PHPUnit_Framework_TestCase } } -?>
\ No newline at end of file +?> diff --git a/tests/unit/Data/TDbConnectionTest.php b/tests/unit/Data/TDbConnectionTest.php index 8f6ff34f..d5c54c39 100644 --- a/tests/unit/Data/TDbConnectionTest.php +++ b/tests/unit/Data/TDbConnectionTest.php @@ -19,6 +19,10 @@ class TDbConnectionTest extends PHPUnit_Framework_TestCase { @unlink(TEST_DB_FILE); @unlink(TEST_DB_FILE2); + + // create application just to provide application mode + new TApplication(__DIR__, false ,TApplication::CONFIG_TYPE_PHP); + $this->_connection1=new TDbConnection('sqlite:'.TEST_DB_FILE); $this->_connection1->Active=true; $this->_connection1->createCommand('CREATE TABLE foo (id INTEGER NOT NULL PRIMARY KEY, name VARCHAR(8))')->execute(); @@ -122,4 +126,4 @@ class TDbConnectionTest extends PHPUnit_Framework_TestCase } } -?>
\ No newline at end of file +?> 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 +?> diff --git a/tests/unit/Data/TDbTransactionTest.php b/tests/unit/Data/TDbTransactionTest.php index c608bce1..7a2b16c2 100644 --- a/tests/unit/Data/TDbTransactionTest.php +++ b/tests/unit/Data/TDbTransactionTest.php @@ -15,6 +15,10 @@ class TDbTransactionTest 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(); @@ -69,4 +73,4 @@ class TDbTransactionTest extends PHPUnit_Framework_TestCase } } -?>
\ No newline at end of file +?> diff --git a/tests/unit/Data/runtime/.gitignore b/tests/unit/Data/runtime/.gitignore new file mode 100644 index 00000000..d6b7ef32 --- /dev/null +++ b/tests/unit/Data/runtime/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore |