summaryrefslogtreecommitdiffstats
path: root/tests/mocks
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mocks')
-rw-r--r--tests/mocks/database/config/sqlite.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/mocks/database/config/sqlite.php b/tests/mocks/database/config/sqlite.php
index cf428f473..8665e208d 100644
--- a/tests/mocks/database/config/sqlite.php
+++ b/tests/mocks/database/config/sqlite.php
@@ -1,7 +1,8 @@
<?php
+$dbdriver = is_php('5.4') ? 'sqlite3' : 'sqlite';
return array(
-
+
// Typical Database configuration
'sqlite' => array(
'dsn' => '',
@@ -9,7 +10,7 @@ return array(
'username' => 'sqlite',
'password' => 'sqlite',
'database' => realpath(__DIR__.'/..').'/ci_test.sqlite',
- 'dbdriver' => 'sqlite',
+ 'dbdriver' => $dbdriver,
),
// Database configuration with failover
@@ -19,7 +20,7 @@ return array(
'username' => 'sqlite',
'password' => 'sqlite',
'database' => '../not_exists.sqlite',
- 'dbdriver' => 'sqlite',
+ 'dbdriver' => $dbdriver,
'failover' => array(
array(
'dsn' => '',
@@ -27,7 +28,7 @@ return array(
'username' => 'sqlite',
'password' => 'sqlite',
'database' => realpath(__DIR__.'/..').'/ci_testf.sqlite',
- 'dbdriver' => 'sqlite',
+ 'dbdriver' => $dbdriver,
),
),
),