Output errors from connection in all drivers. These usually are triggered by misconfi...
authorJan Schneider <jan@horde.org>
Fri, 3 Dec 2010 17:35:01 +0000 (18:35 +0100)
committerJan Schneider <jan@horde.org>
Fri, 3 Dec 2010 17:41:55 +0000 (18:41 +0100)
framework/Db/test/Horde/Db/Adapter/MysqliSuite.php
framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php
framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php
framework/Db/test/Horde/Db/Adapter/Pdo/SqliteSuite.php

index ce1acfa..797467d 100644 (file)
@@ -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) {
index 3bf7a4d..7b12340 100644 (file)
@@ -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) {
index c3cc58f..9837eab 100644 (file)
@@ -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) {
index 02a5d0b..17ea396 100644 (file)
@@ -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) {