diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-06-23 19:26:31 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-06-23 19:26:31 +0200 |
commit | fbba54ea6c896e0545d4d20a19abe06d57ffc97b (patch) | |
tree | a4306167666d32609e7cb1ec1217187ddac8073b /tests/mocks/database/db.php | |
parent | 7a744a8ba8f07ba1ec3a48f1d5de641b4025ce20 (diff) |
Rename pdodriver property to subdriver and make it available to all drivers
Diffstat (limited to 'tests/mocks/database/db.php')
-rw-r--r-- | tests/mocks/database/db.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/mocks/database/db.php b/tests/mocks/database/db.php index 30504bba6..75658530b 100644 --- a/tests/mocks/database/db.php +++ b/tests/mocks/database/db.php @@ -45,9 +45,9 @@ class Mock_Database_DB { ); $config = array_merge($this->config[$group], $params); - $dsnstring = ( ! empty($config['dsn'])) ? $config['dsn'] : FALSE; - $pdodriver = ( ! empty($config['pdodriver'])) ? $config['pdodriver'] : FALSE; - $failover = ( ! empty($config['failover'])) ? $config['failover'] : FALSE; + $dsnstring = empty($config['dsn']) ? FALSE : $config['dsn']; + $subdriver = empty($config['subdriver']) ? FALSE: $config['subdriver']; + $failover = empty($config['failover']) ? FALSE : $config['failover']; $dsn = $config['dbdriver'].'://'.$config['username'].':'.$config['password'] .'@'.$config['hostname'].'/'.$config['database']; @@ -55,7 +55,7 @@ class Mock_Database_DB { // Build the parameter $other_params = array_slice($config, 6); if ($dsnstring) $other_params['dsn'] = $dsnstring; - if ($pdodriver) $other_params['pdodriver'] = $pdodriver; + if ($subdriver) $other_params['subdriver'] = $subdriver; if ($failover) $other_params['failover'] = $failover; return $dsn.'?'.http_build_query($other_params); |