From 0e55770c62a1ce71de0c46707533ab8611469b63 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 3 Dec 2010 19:23:47 +0100 Subject: [PATCH] Fix function name. --- framework/Db/test/Horde/Db/Adapter/MysqlSuite.php | 2 +- framework/Db/test/Horde/Db/Adapter/MysqliSuite.php | 2 +- framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php | 2 +- framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/Db/test/Horde/Db/Adapter/MysqlSuite.php b/framework/Db/test/Horde/Db/Adapter/MysqlSuite.php index 70686d9d7..c982df6f2 100644 --- a/framework/Db/test/Horde/Db/Adapter/MysqlSuite.php +++ b/framework/Db/test/Horde/Db/Adapter/MysqlSuite.php @@ -62,7 +62,7 @@ class Horde_Db_Adapter_MysqlSuite extends PHPUnit_Framework_TestSuite public function getConnection() { $config = getenv('DB_ADAPTER_MYSQL_TEST_CONFIG'); - if ($config && !is_dir(basename($config))) { + if ($config && !is_dir(dirname($config))) { $config = array_merge(array('host' => 'localhost', 'username' => '', 'password' => '', 'dbname' => 'test'), json_decode($config, true)); } else { if (!$config) { diff --git a/framework/Db/test/Horde/Db/Adapter/MysqliSuite.php b/framework/Db/test/Horde/Db/Adapter/MysqliSuite.php index 9395a721b..e0b4f2ea5 100644 --- a/framework/Db/test/Horde/Db/Adapter/MysqliSuite.php +++ b/framework/Db/test/Horde/Db/Adapter/MysqliSuite.php @@ -62,7 +62,7 @@ class Horde_Db_Adapter_MysqliSuite extends PHPUnit_Framework_TestSuite public function getConnection() { $config = getenv('DB_ADAPTER_MYSQLI_TEST_CONFIG'); - if ($config && !is_dir(basename($config))) { + if ($config && !is_dir(dirname($config))) { $config = array_merge(array('host' => 'localhost', 'username' => '', 'password' => '', 'dbname' => 'test'), json_decode($config, true)); } else { if (!$config) { diff --git a/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php b/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php index 286c47a03..f78137853 100644 --- a/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php +++ b/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlSuite.php @@ -62,7 +62,7 @@ class Horde_Db_Adapter_Pdo_MysqlSuite extends PHPUnit_Framework_TestSuite public function getConnection() { $config = getenv('DB_ADAPTER_PDO_MYSQL_TEST_CONFIG'); - if ($config && !is_dir(basename($config))) { + if ($config && !is_dir(dirname($config))) { $config = array_merge(array('host' => 'localhost', 'username' => '', 'password' => '', 'dbname' => 'test'), json_decode($config, true)); } else { if (!$config) { diff --git a/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php b/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php index 71fdfa0b2..a1fe5c5fa 100644 --- a/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php +++ b/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlSuite.php @@ -68,7 +68,7 @@ class Horde_Db_Adapter_Pdo_PgsqlSuite extends PHPUnit_Framework_TestSuite } $config = getenv('DB_ADAPTER_PDO_PGSQL_TEST_CONFIG'); - if ($config && !is_dir(basename($config))) { + if ($config && !is_dir(dirname($config))) { $config = array_merge(array('username' => '', 'password' => '', 'dbname' => 'test'), json_decode($config, true)); } else { if (!$config) { -- 2.11.0