From fab1e3405cde00cc6baf591d2fe60bf41fcb29c8 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 3 Dec 2010 18:35:01 +0100 Subject: [PATCH] Output errors from connection in all drivers. These usually are triggered by misconfigured test suites. --- framework/Db/test/Horde/Db/Adapter/MysqliSuite.php | 4 +++- framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php | 4 +++- framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php | 4 +++- framework/Db/test/Horde/Db/Adapter/Pdo/SqliteSuite.php | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/framework/Db/test/Horde/Db/Adapter/MysqliSuite.php b/framework/Db/test/Horde/Db/Adapter/MysqliSuite.php index ce1acfa8b..797467dfb 100644 --- a/framework/Db/test/Horde/Db/Adapter/MysqliSuite.php +++ b/framework/Db/test/Horde/Db/Adapter/MysqliSuite.php @@ -34,7 +34,9 @@ class Horde_Db_Adapter_MysqliSuite extends PHPUnit_Framework_TestSuite list($conn,) = $suite->getConnection(); $skip = false; $conn->disconnect(); - } catch (Exception $e) {} + } catch (Exception $e) { + echo $e->getMessage() . "\n"; + } } if ($skip) { diff --git a/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php b/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php index 3bf7a4de0..7b12340f8 100644 --- a/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php +++ b/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php @@ -34,7 +34,9 @@ class Horde_Db_Adapter_Pdo_MysqlSuite extends PHPUnit_Framework_TestSuite list($conn,) = $suite->getConnection(); $skip = false; $conn->disconnect(); - } catch (Exception $e) {} + } catch (Exception $e) { + echo $e->getMessage() . "\n"; + } } if ($skip) { diff --git a/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php b/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php index c3cc58fb3..9837eabc7 100644 --- a/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php +++ b/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php @@ -35,7 +35,9 @@ class Horde_Db_Adapter_Pdo_PgsqlSuite extends PHPUnit_Framework_TestSuite try { self::$conn = $suite->getConnection(); $skip = false; - } catch (Exception $e) {} + } catch (Exception $e) { + echo $e->getMessage() . "\n"; + } } if ($skip) { diff --git a/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteSuite.php b/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteSuite.php index 02a5d0bd0..17ea39669 100644 --- a/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteSuite.php +++ b/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteSuite.php @@ -34,7 +34,9 @@ class Horde_Db_Adapter_Pdo_SqliteSuite extends PHPUnit_Framework_TestSuite list($conn,) = $suite->getConnection(); $skip = false; $conn->disconnect(); - } catch (Exception $e) {} + } catch (Exception $e) { + echo $e->getMessage() . "\n"; + } } if ($skip) { -- 2.11.0