Permalink
Browse files

Use same dsn setting layout as the branch.

git-svn-id: http://svn.php.net/repository/pear/packages/Tree/trunk@320873 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 4dfbae4 commit eb1465594ce96dd76b380da9eee20320aa547906 Daniel Convissor committed Dec 11, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/TreeHelper.php
View
@@ -21,7 +21,9 @@
. PATH_SEPARATOR . ini_get('include_path'));
}
- if (!empty($_ENV['MYSQL_TEST_USER'])) {
+ if (empty($_ENV['MYSQL_TEST_USER'])) {
+ $dsn = 'mysqli://root:hamstur@localhost/test';
+ } else {
$dsn = array(
'phptype' => 'mysqli',
'username' => $_ENV['MYSQL_TEST_USER'],
@@ -37,8 +39,6 @@
'socket' => empty($_ENV['MYSQL_TEST_SOCKET'])
? null : $_ENV['MYSQL_TEST_SOCKET'],
);
- } else {
- $dsn = 'mysqli://root:hamstur@localhost/test';
}
define('DB_DSN', serialize($dsn));

0 comments on commit eb14655

Please sign in to comment.