From 3991dbc6a44a7693037f1928aec752bd1d9f68e6 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Thu, 22 Mar 2012 16:10:12 -0400 Subject: [PATCH] Query builder mysql tests --- tests/databases/mysql-qb.php | 12 ++++++++++++ tests/databases/mysql.php | 2 +- tests/test_dbs/FB_TEST_DB.FDB | Bin 802816 -> 802816 bytes 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/databases/mysql-qb.php b/tests/databases/mysql-qb.php index 3899d07..c0ebecb 100644 --- a/tests/databases/mysql-qb.php +++ b/tests/databases/mysql-qb.php @@ -29,6 +29,18 @@ class MySQLQBTest extends QBTest { // echo '
MySQL Queries
'; } + elseif ( ! empty($_ENV['TRAVIS'])) + { + $params = array( + 'host' => '127.0.0.1', + 'port' => '3306', + 'database' => 'test', + 'user' => 'root', + 'pass' => NULL + ); + + $this->db = new Query_Builder($params); + } } diff --git a/tests/databases/mysql.php b/tests/databases/mysql.php index 209fa6a..185e9a7 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); } - else + elseif ( ! empty($_ENV['TRAVIS'])) { $this->db = new MySQL('host=127.0.0.1;dbname=test', 'root'); } diff --git a/tests/test_dbs/FB_TEST_DB.FDB b/tests/test_dbs/FB_TEST_DB.FDB index 66d271b68e96e0ce11efb07c7b770d526015c450..fe947128f3d657ac63c715d937ebfdb5f078ee0d 100755 GIT binary patch delta 431 zcmZ9G!Ak;B5XNU#-OU}M>ChpA&`j;PQc<0XBq)L+2X+75(n=#F_X{J{YW(<1>{tlBF=u*3vBLG$R z0w`E{23VhZOg#*AJ}@Y5Z-z;kwx?$)m1m?3hBk(sE8i8MO_i7Zt zbS3~L$8P`|vyW+OxL3e{I#Kq3IBPX}9xtB_n2a;R8Raa%nZ#L;vk+%t&ScJ%I#VS^ z_N`z{JqcNtDRoJymBT!%*0U&`E`IpEdmW%i5b|=;qdB<`j+7W|E90=HBp{0*KGh*B4G*2O30i$9~_WgP$j