This commit is contained in:
Timothy Warren 2012-03-22 16:28:31 -04:00
parent a75efa93f1
commit 514ed88f71
4 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ class MySQLQBTest extends QBTest {
// echo '<hr /> MySQL Queries <hr />';
}
elseif ( ! empty($_ENV['CI']))
elseif ( ! empty(getenv('CI')))
{
$params = array(
'host' => '127.0.0.1',

View File

@ -29,7 +29,7 @@ class MySQLTest extends DBTest {
$this->db = new MySQL("host={$params->host};port={$params->port};dbname={$params->database}", $params->user, $params->pass);
}
elseif ( ! empty($_ENV['CI']))
elseif ( ! empty(getenv('CI')))
{
$this->db = new MySQL('host=127.0.0.1;port=3306;dbname=test', 'root');
}

View File

@ -30,7 +30,7 @@ class PgSQLQBTest extends QBTest {
// echo '<hr /> Postgres Queries <hr />';
}
elseif ( ! empty($_ENV['CI']))
elseif ( ! empty(getenv('CI')))
{
$params = array(
'host' => '127.0.0.1',

View File

@ -34,7 +34,7 @@ class PgTest extends DBTest {
$this->db = new PgSQL("host={$params->host};port={$params->port};dbname={$params->database}", $params->user, $params->pass);
}
elseif ( ! empty($_ENV['CI']))
elseif ( ! empty(getenv('CI')))
{
$this->db = new PgSQL('host=127.0.0.1;port=5432;dbname=test', 'postgres');
}