aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-02-15 21:08:33 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2011-02-15 21:08:33 -0500
commitbd8e5ff79e68e5a270762917af47917f504acbde (patch)
tree899a4dbe7d7919b43a29229cdc1cb211f11e6f55 /tests/test_framework
parentd3718bf5d43282cb2136d25b8fd1ba5c8ccf0b17 (diff)
downloadforums-bd8e5ff79e68e5a270762917af47917f504acbde.tar
forums-bd8e5ff79e68e5a270762917af47917f504acbde.tar.gz
forums-bd8e5ff79e68e5a270762917af47917f504acbde.tar.bz2
forums-bd8e5ff79e68e5a270762917af47917f504acbde.tar.xz
forums-bd8e5ff79e68e5a270762917af47917f504acbde.zip
[task/refactor-db-testcase] Further improve error messages.
PHPBB3-10043
Diffstat (limited to 'tests/test_framework')
-rw-r--r--tests/test_framework/phpbb_database_test_connection_manager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_framework/phpbb_database_test_connection_manager.php b/tests/test_framework/phpbb_database_test_connection_manager.php
index 707ce70fd0..6c06857fbc 100644
--- a/tests/test_framework/phpbb_database_test_connection_manager.php
+++ b/tests/test_framework/phpbb_database_test_connection_manager.php
@@ -83,7 +83,7 @@ class phpbb_database_test_connection_manager
catch (PDOException $e)
{
$cleaned_dsn = str_replace($this->config['dbpasswd'], '*password*', $dsn);
- throw new Exception("Unable do connect to $cleaned_dsn with error: {$e->getMessage()}");
+ throw new Exception("Unable do connect to $cleaned_dsn using PDO with error: {$e->getMessage()}");
}
// good for debug
@@ -338,7 +338,7 @@ class phpbb_database_test_connection_manager
}
else
{
- $message = 'Supplied dbms is unsupported, must be one of: ';
+ $message = "Supplied dbms \"$dbms\" is not a valid phpBB dbms, must be one of: ";
$message .= implode(', ', array_keys($available_dbms));
throw new Exception($message);
}