Query builder mysql tests

This commit is contained in:
Timothy Warren 2012-03-22 16:10:12 -04:00
parent f141805627
commit 3991dbc6a4
3 changed files with 13 additions and 1 deletions

View File

@ -29,6 +29,18 @@ class MySQLQBTest extends QBTest {
// echo '<hr /> MySQL Queries <hr />'; // echo '<hr /> MySQL Queries <hr />';
} }
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);
}
} }

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); $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'); $this->db = new MySQL('host=127.0.0.1;dbname=test', 'root');
} }

Binary file not shown.