getenv?
This commit is contained in:
parent
514ed88f71
commit
2355ca3b0d
@ -29,7 +29,7 @@ class MySQLQBTest extends QBTest {
|
|||||||
|
|
||||||
// echo '<hr /> MySQL Queries <hr />';
|
// echo '<hr /> MySQL Queries <hr />';
|
||||||
}
|
}
|
||||||
elseif ( ! empty(getenv('CI')))
|
elseif (($var = getenv('CI')))
|
||||||
{
|
{
|
||||||
$params = array(
|
$params = array(
|
||||||
'host' => '127.0.0.1',
|
'host' => '127.0.0.1',
|
||||||
|
@ -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);
|
$this->db = new MySQL("host={$params->host};port={$params->port};dbname={$params->database}", $params->user, $params->pass);
|
||||||
}
|
}
|
||||||
elseif ( ! empty(getenv('CI')))
|
elseif (($var = getenv('CI')))
|
||||||
{
|
{
|
||||||
$this->db = new MySQL('host=127.0.0.1;port=3306;dbname=test', 'root');
|
$this->db = new MySQL('host=127.0.0.1;port=3306;dbname=test', 'root');
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ class PgSQLQBTest extends QBTest {
|
|||||||
// echo '<hr /> Postgres Queries <hr />';
|
// echo '<hr /> Postgres Queries <hr />';
|
||||||
|
|
||||||
}
|
}
|
||||||
elseif ( ! empty(getenv('CI')))
|
elseif (($var = getenv('CI')))
|
||||||
{
|
{
|
||||||
$params = array(
|
$params = array(
|
||||||
'host' => '127.0.0.1',
|
'host' => '127.0.0.1',
|
||||||
|
@ -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);
|
$this->db = new PgSQL("host={$params->host};port={$params->port};dbname={$params->database}", $params->user, $params->pass);
|
||||||
}
|
}
|
||||||
elseif ( ! empty(getenv('CI')))
|
elseif (($var = getenv('CI')))
|
||||||
{
|
{
|
||||||
$this->db = new PgSQL('host=127.0.0.1;port=5432;dbname=test', 'postgres');
|
$this->db = new PgSQL('host=127.0.0.1;port=5432;dbname=test', 'postgres');
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user