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) {
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) {
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) {
}
$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) {