}
$config = self::getConfig('SHARE_SQL_PDO_MYSQL_TEST_CONFIG');
if ($config) {
- self::$db = new Horde_Db_Adapter_Pdo_Mysql($config['share']['sql']['pdo_mysql']);
+ try {
+ self::$db = new Horde_Db_Adapter_Pdo_Mysql($config['share']['sql']['pdo_mysql']);
+ } catch (Horde_Db_Exception $e) {
+ return;
+ }
parent::setUpBeforeClass();
}
}
}
$config = self::getConfig('SHARE_SQL_PDO_PGSQL_TEST_CONFIG');
if ($config) {
- self::$db = new Horde_Db_Adapter_Pdo_Pgsql($config['share']['sql']['pdo_pgsql']);
+ try {
+ self::$db = new Horde_Db_Adapter_Pdo_Pgsql($config['share']['sql']['pdo_pgsql']);
+ } catch (Horde_Db_Exception $e) {
+ return;
+ }
parent::setUpBeforeClass();
}
}
!in_array('sqlite', PDO::getAvailableDrivers())) {
return;
}
- self::$db = new Horde_Db_Adapter_Pdo_Sqlite(array('dbname' => ':memory:', 'charset' => 'utf-8'));
+ try {
+ self::$db = new Horde_Db_Adapter_Pdo_Sqlite(array('dbname' => ':memory:', 'charset' => 'utf-8'));
+ } catch (Horde_Db_Exception $e) {
+ return;
+ }
parent::setUpBeforeClass();
}
}
}
$config = self::getConfig('SHARE_SQL_PDO_MYSQL_TEST_CONFIG');
if ($config) {
- self::$db = new Horde_Db_Adapter_Pdo_Mysql($config['share']['sql']['pdo_mysql']);
+ try {
+ self::$db = new Horde_Db_Adapter_Pdo_Mysql($config['share']['sql']['pdo_mysql']);
+ } catch (Horde_Db_Exception $e) {
+ return;
+ }
parent::setUpBeforeClass();
}
}
}
$config = self::getConfig('SHARE_SQL_PDO_PGSQL_TEST_CONFIG');
if ($config) {
- self::$db = new Horde_Db_Adapter_Pdo_Pgsql($config['share']['sql']['pdo_pgsql']);
+ try {
+ self::$db = new Horde_Db_Adapter_Pdo_Pgsql($config['share']['sql']['pdo_pgsql']);
+ } catch (Horde_Db_Exception $e) {
+ return;
+ }
parent::setUpBeforeClass();
}
}
!in_array('sqlite', PDO::getAvailableDrivers())) {
return;
}
- self::$db = new Horde_Db_Adapter_Pdo_Sqlite(array('dbname' => ':memory:', 'charset' => 'utf-8'));
+ try {
+ self::$db = new Horde_Db_Adapter_Pdo_Sqlite(array('dbname' => ':memory:', 'charset' => 'utf-8'));
+ } catch (Horde_Db_Exception $e) {
+ return;
+ }
parent::setUpBeforeClass();
}
}