Permalink
Browse files

run type through strtolower in if statement as well (refs #4507)

  • Loading branch information...
1 parent 04e8451 commit a949f09f3100f7d10bd4a86e8abc7b529ff01302 @Zeelot Zeelot committed Feb 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/Kohana/Unittest/Database/TestCase.php
@@ -89,7 +89,7 @@ public function getConnection()
// Get the unittesting db connection
$config = Kohana::$config->load('database.'.$this->_database_connection);
- if($config['type'] !== 'pdo')
+ if(strtolower($config['type']) !== 'pdo')
{
$config['connection']['dsn'] = strtolower($config['type']).':'.
'host='.$config['connection']['hostname'].';'.

0 comments on commit a949f09

Please sign in to comment.