Fix unit tests for PHP 7

This commit is contained in:
Kijin Sung 2016-01-06 13:29:27 +09:00
parent 7b792ff27e
commit 4e235ad28c
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ $dsn = $db_config['dsn'];
$dsn = preg_split('/[;:]/', $dsn);
$db_type = array_shift($dsn);
$dbinfo = [
'type' => $db_type,
'type' => (($db_type === 'mysql') ? 'mysqli' : $db_type),
'user' => $db_config['user'],
'password' => $db_config['password'],
'port' => ((isset($db_config['port']) && $db_config['port'])?: 3306),