1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-18 20:02:20 +02:00

tests: added missing items to databases.sample.ini & etc

This commit is contained in:
David Grudl
2015-11-04 13:40:19 +01:00
parent ac1ab26e7a
commit 6730fb4633
3 changed files with 96 additions and 22 deletions

View File

@@ -19,7 +19,7 @@ try {
$config = Tester\Environment::loadData();
} catch (Exception $e) {
$config = parse_ini_file(__DIR__ . '/../databases.ini', TRUE);
$config = $config['sqlite3'];
$config = reset($config);
}
@@ -63,7 +63,7 @@ function reformat($s)
return strtr($s, '[]', '``');
} elseif ($config['system'] === 'postgre') {
return strtr($s, '[]', '""');
} elseif ($config['system'] === 'odbc' || $config['system'] === 'sqlite') {
} elseif (in_array($config['system'], ['odbc', 'sqlite', 'sqlsrv'])) {
return $s;
} else {
trigger_error("Unsupported driver $config[system]", E_USER_WARNING);