From 13e844a2f7735d3ef29a0becc0f93104ec3ed892 Mon Sep 17 00:00:00 2001 From: jgen Date: Sat, 22 Feb 2014 18:32:42 -0500 Subject: [PATCH] Output the DSN. --- install.php | 2 +- tests/test_install.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/install.php b/install.php index 6d33fb68..8d7bf1f1 100644 --- a/install.php +++ b/install.php @@ -338,7 +338,7 @@ EOD;

EOD; - if (defined('DATABASE_DSN')) { print "DATABASE_DSN = " + DATABASE_DSN; } + print "DATABASE_DSN = '" + DATABASE_DSN + "'"; exit($e->getMessage()); } catch (Exception $e) diff --git a/tests/test_install.php b/tests/test_install.php index 4d1022cf..0e70cd31 100644 --- a/tests/test_install.php +++ b/tests/test_install.php @@ -28,10 +28,10 @@ define("_TRAVIS_DATABASE", $db); define("_TRAVIS_WEBHOST", $host); // Currently the tests only support MySQL and PostgreSQL. -if ($db == "mysql") { +if ($db === "mysql") { define("_TRAVIS_DATABASE_USERNAME", "root"); define("_TRAVIS_DATABASE_PASSWORD", ""); -} elseif ($db == "pgsql") { +} elseif ($db === "pgsql") { define("_TRAVIS_DATABASE_USERNAME", "postgres"); define("_TRAVIS_DATABASE_PASSWORD", ""); } else {