2012-03-15 09:25:18 -04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Query
|
|
|
|
*
|
|
|
|
* Free Query Builder / Database Abstraction Layer
|
|
|
|
*
|
|
|
|
* @author Timothy J. Warren
|
|
|
|
* @copyright Copyright (c) 2012
|
|
|
|
* @link https://github.com/aviat4ion/Query
|
|
|
|
* @license http://philsturgeon.co.uk/code/dbad-license
|
|
|
|
*/
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Firebird Query Builder Tests
|
|
|
|
*/
|
2012-03-19 13:24:36 -04:00
|
|
|
class FirebirdQBTest extends QBTest {
|
2012-03-15 09:25:18 -04:00
|
|
|
|
|
|
|
function __construct()
|
|
|
|
{
|
|
|
|
parent::__construct();
|
|
|
|
|
2012-04-11 11:48:56 -04:00
|
|
|
$dbpath = TEST_DIR.DS.'db_files'.DS.'FB_TEST_DB.FDB';
|
2012-03-15 09:25:18 -04:00
|
|
|
|
|
|
|
// Test the query builder
|
|
|
|
$params = new Stdclass();
|
|
|
|
$params->type = 'firebird';
|
|
|
|
$params->file = $dbpath;
|
|
|
|
$params->host = 'localhost';
|
|
|
|
$params->user = 'sysdba';
|
|
|
|
$params->pass = 'masterkey';
|
|
|
|
$this->db = new Query_Builder($params);
|
|
|
|
|
2012-03-19 13:58:14 -04:00
|
|
|
// echo '<hr /> Firebird Queries <hr />';
|
2012-04-17 16:57:28 -04:00
|
|
|
}
|
2012-03-15 09:25:18 -04:00
|
|
|
}
|