Fix unit tests for PHP 7

This commit is contained in:
Kijin Sung 2016-01-06 13:21:58 +09:00
parent 0e1b0b42dd
commit 7b792ff27e
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ $config = (!$this->env) ? Configuration::suiteSettings('Install', Configuration:
$db_config = $config['modules']['config']['Db'];
$dsn = $db_config['dsn'];
$dsn = split('[;:]', $dsn);
$dsn = preg_split('/[;:]/', $dsn);
$db_type = array_shift($dsn);
$dbinfo = [
'type' => $db_type,

View file

@ -8,7 +8,7 @@ $config = (!$this->env) ? Configuration::suiteSettings('Install', Configuration:
$db_config = $config['modules']['config']['Db'];
$dsn = $db_config['dsn'];
$dsn = split('[;:]', $dsn);
$dsn = preg_split('/[;:]/', $dsn);
$db_type = array_shift($dsn);
$dbinfo = [
'type' => $db_type,