Fix function name.
authorJan Schneider <jan@horde.org>
Fri, 3 Dec 2010 18:23:47 +0000 (19:23 +0100)
committerJan Schneider <jan@horde.org>
Fri, 3 Dec 2010 18:23:47 +0000 (19:23 +0100)
framework/Db/test/Horde/Db/Adapter/MysqlSuite.php
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

index 70686d9..c982df6 100644 (file)
@@ -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) {
index 9395a72..e0b4f2e 100644 (file)
@@ -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) {
index 286c47a..f781378 100644 (file)
@@ -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) {
index 71fdfa0..a1fe5c5 100644 (file)
@@ -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) {