From 2355ca3b0d81730164b47e21e95639760f65b543 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Thu, 22 Mar 2012 16:33:28 -0400 Subject: [PATCH] getenv? --- tests/databases/mysql-qb.php | 2 +- tests/databases/mysql.php | 2 +- tests/databases/pgsql-qb.php | 2 +- tests/databases/pgsql.php | 2 +- tests/test_dbs/FB_TEST_DB.FDB | Bin 802816 -> 802816 bytes 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/databases/mysql-qb.php b/tests/databases/mysql-qb.php index 803074c..9cf74be 100644 --- a/tests/databases/mysql-qb.php +++ b/tests/databases/mysql-qb.php @@ -29,7 +29,7 @@ class MySQLQBTest extends QBTest { // echo '
MySQL Queries
'; } - elseif ( ! empty(getenv('CI'))) + elseif (($var = getenv('CI'))) { $params = array( 'host' => '127.0.0.1', diff --git a/tests/databases/mysql.php b/tests/databases/mysql.php index ab4fcb5..8443119 100644 --- a/tests/databases/mysql.php +++ b/tests/databases/mysql.php @@ -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(getenv('CI'))) + elseif (($var = getenv('CI'))) { $this->db = new MySQL('host=127.0.0.1;port=3306;dbname=test', 'root'); } diff --git a/tests/databases/pgsql-qb.php b/tests/databases/pgsql-qb.php index 9d1314e..e936a4c 100644 --- a/tests/databases/pgsql-qb.php +++ b/tests/databases/pgsql-qb.php @@ -30,7 +30,7 @@ class PgSQLQBTest extends QBTest { // echo '
Postgres Queries
'; } - elseif ( ! empty(getenv('CI'))) + elseif (($var = getenv('CI'))) { $params = array( 'host' => '127.0.0.1', diff --git a/tests/databases/pgsql.php b/tests/databases/pgsql.php index c61e630..1c4fedd 100644 --- a/tests/databases/pgsql.php +++ b/tests/databases/pgsql.php @@ -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(getenv('CI'))) + elseif (($var = getenv('CI'))) { $this->db = new PgSQL('host=127.0.0.1;port=5432;dbname=test', 'postgres'); } diff --git a/tests/test_dbs/FB_TEST_DB.FDB b/tests/test_dbs/FB_TEST_DB.FDB index fe947128f3d657ac63c715d937ebfdb5f078ee0d..e40193e9bde8cc8f0082ea87cfcc75df82b6d392 100755 GIT binary patch delta 395 zcmYL^Jxc>Y5Qb;&ZclTAWCEs%Ac;wg1ce+TVi&X(KZuBhf&7Qq*<1wo4_IuWU?T=4 zf*+7r3AQ%2YIR1)Nh(X5h12lR72ahIyxMh{prO4cOnk`2j1vMG5)@~GrUlP!bsswI+E z(>yA&f%?s6F(M0Avp~l6dT+QqTmjn{g^bAdX&49D|aug}>F)rfSsy0n&4aq$k7s!Ks#T!f-XkqZ3|#mVImdRM@!`>WI1~t;bVEwXI0RM-iq;&gTNxm05ejlXoPEg*JWKZ~?=*@{ zd^CB`LNW#pPquNHcRM)ae>(tAT5Ny-q5Cmw((bR08A4uz9$$7a%@-|PGP(}GwsCWM z_=e$*P*X0iRN3unO}2w^-q)R|@<|uB#SI@f(dEw`dR%Mb78m