summaryrefslogtreecommitdiffstats
path: root/tests/mocks/database/config/pdo/sqlite.php
diff options
context:
space:
mode:
authorTaufan Aditya <toopay@taufanaditya.com>2012-04-04 18:46:23 +0200
committerTaufan Aditya <toopay@taufanaditya.com>2012-04-04 18:46:23 +0200
commit197251479b6c55d7fd65ef8f0eccc14450b1cbec (patch)
tree44b46b538075c6b26aef7a7acf10bf88fb690e1a /tests/mocks/database/config/pdo/sqlite.php
parentf4c6c9b3061b464c959b6409f962228959f35287 (diff)
Fix sqlite issue on PHP 5.4 both for native and PDO driver
Diffstat (limited to 'tests/mocks/database/config/pdo/sqlite.php')
-rw-r--r--tests/mocks/database/config/pdo/sqlite.php20
1 files changed, 16 insertions, 4 deletions
diff --git a/tests/mocks/database/config/pdo/sqlite.php b/tests/mocks/database/config/pdo/sqlite.php
index 1e5043b00..c68b4b213 100644
--- a/tests/mocks/database/config/pdo/sqlite.php
+++ b/tests/mocks/database/config/pdo/sqlite.php
@@ -4,20 +4,32 @@ return array(
// Typical Database configuration
'pdo/sqlite' => array(
- 'dsn' => 'sqlite:/'.realpath(__DIR__.'/..').'/ci_test.sqlite',
+ 'dsn' => 'sqlite:/'.realpath(__DIR__.'/../..').'/ci_test.sqlite',
+ 'hostname' => 'localhost',
+ 'username' => 'sqlite',
+ 'password' => 'sqlite',
+ 'database' => 'sqlite',
'dbdriver' => 'pdo',
'pdodriver' => 'sqlite',
),
// Database configuration with failover
'pdo/sqlite_failover' => array(
- 'dsn' => 'sqlite:/'.realpath(__DIR__.'/..').'/not_exists.sqlite',
+ 'dsn' => 'sqlite:not_exists.sqlite',
+ 'hostname' => 'localhost',
+ 'username' => 'sqlite',
+ 'password' => 'sqlite',
+ 'database' => 'sqlite',
'dbdriver' => 'pdo',
'pdodriver' => 'sqlite',
'failover' => array(
array(
- 'dsn' => 'sqlite:/'.realpath(__DIR__.'/..').'/ci_test.sqlite',
- 'dbdriver' => 'pdo',
+ 'dsn' => 'sqlite:/'.realpath(__DIR__.'/../..').'/ci_test.sqlite',
+ 'hostname' => 'localhost',
+ 'username' => 'sqlite',
+ 'password' => 'sqlite',
+ 'database' => 'sqlite',
+ 'dbdriver' => 'pdo',
'pdodriver' => 'sqlite',
),
),