summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-04-03 11:42:59 +0200
committerAndrey Andreev <narf@bofh.bg>2012-04-03 11:42:59 +0200
commit6dfe76dfe4634971faeef197aa724c924a72d515 (patch)
treebc4dd47afdfc89befcb3da9e7e277cdc5b92ee26 /tests
parent00adf1d480f94692a625ec2165e0fcc9171c6e2f (diff)
Alter SQLite tests config to use the sqlite3 driver under PHP 5.4+
Diffstat (limited to 'tests')
-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,
),
),
),