diff options
author | Taufan Aditya <toopay@taufanaditya.com> | 2012-04-04 14:38:16 +0200 |
---|---|---|
committer | Taufan Aditya <toopay@taufanaditya.com> | 2012-04-04 14:38:16 +0200 |
commit | 44015c8d91ecea78ee4a10de579c36a859c2fcb6 (patch) | |
tree | 4081890d25571abb67c49b0b7c7033e226c800be /tests/mocks/database/config/pdo/sqlite.php | |
parent | 6a96bf7ece4da23e2a802f48c408fa240da776f0 (diff) |
Set up PDO constant and configuration
Diffstat (limited to 'tests/mocks/database/config/pdo/sqlite.php')
-rw-r--r-- | tests/mocks/database/config/pdo/sqlite.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/mocks/database/config/pdo/sqlite.php b/tests/mocks/database/config/pdo/sqlite.php new file mode 100644 index 000000000..c6827b41c --- /dev/null +++ b/tests/mocks/database/config/pdo/sqlite.php @@ -0,0 +1,22 @@ +<?php + +return array( + + // Typical Database configuration + 'pdo/sqlite' => array( + 'dsn' => 'sqlite:/'.realpath(__DIR__.'/..').'/ci_test.sqlite', + 'dbdriver' => 'pdo', + ), + + // Database configuration with failover + 'pdo/sqlite_failover' => array( + 'dsn' => 'sqlite:/'.realpath(__DIR__.'/..').'/not_exists.sqlite', + 'dbdriver' => 'pdo', + 'failover' => array( + array( + 'dsn' => 'sqlite:/'.realpath(__DIR__.'/..').'/ci_test.sqlite', + 'dbdriver' => 'pdo', + ), + ), + ), +);
\ No newline at end of file |