summaryrefslogtreecommitdiffstats
path: root/tests/mocks/database/config/sqlite.php
diff options
context:
space:
mode:
authorTaufan Aditya <toopay@taufanaditya.com>2012-04-04 14:38:16 +0200
committerTaufan Aditya <toopay@taufanaditya.com>2012-04-04 14:38:16 +0200
commit44015c8d91ecea78ee4a10de579c36a859c2fcb6 (patch)
tree4081890d25571abb67c49b0b7c7033e226c800be /tests/mocks/database/config/sqlite.php
parent6a96bf7ece4da23e2a802f48c408fa240da776f0 (diff)
Set up PDO constant and configuration
Diffstat (limited to 'tests/mocks/database/config/sqlite.php')
-rw-r--r--tests/mocks/database/config/sqlite.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/mocks/database/config/sqlite.php b/tests/mocks/database/config/sqlite.php
index 8665e208d..c70986e7c 100644
--- a/tests/mocks/database/config/sqlite.php
+++ b/tests/mocks/database/config/sqlite.php
@@ -1,5 +1,4 @@
<?php
-$dbdriver = is_php('5.4') ? 'sqlite3' : 'sqlite';
return array(
@@ -10,7 +9,7 @@ return array(
'username' => 'sqlite',
'password' => 'sqlite',
'database' => realpath(__DIR__.'/..').'/ci_test.sqlite',
- 'dbdriver' => $dbdriver,
+ 'dbdriver' => is_php('5.4') ? 'sqlite3' : 'sqlite',
),
// Database configuration with failover
@@ -20,7 +19,7 @@ return array(
'username' => 'sqlite',
'password' => 'sqlite',
'database' => '../not_exists.sqlite',
- 'dbdriver' => $dbdriver,
+ 'dbdriver' => is_php('5.4') ? 'sqlite3' : 'sqlite',
'failover' => array(
array(
'dsn' => '',
@@ -28,7 +27,7 @@ return array(
'username' => 'sqlite',
'password' => 'sqlite',
'database' => realpath(__DIR__.'/..').'/ci_testf.sqlite',
- 'dbdriver' => $dbdriver,
+ 'dbdriver' => is_php('5.4') ? 'sqlite3' : 'sqlite',
),
),
),