This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
OpenSQLManager/tests/databases/odbc.php

45 lines
806 B
PHP
Raw Normal View History

2012-02-02 19:04:10 -05:00
<?php
/**
* OpenSQLManager
*
* Free Database manager for Open Source Databases
*
* @author Timothy J. Warren
* @copyright Copyright (c) 2012
* @link https://github.com/aviat4ion/OpenSQLManager
* @license http://philsturgeon.co.uk/code/dbad-license
*/
// --------------------------------------------------------------------------
/**
* ODBCTest class.
*
* @extends UnitTestCase
*/
class ODBCTest extends UnitTestCase {
/**
* __construct function.
*
* @access public
* @return void
*/
function __construct()
{
parent::__construct();
2012-03-09 15:55:56 -05:00
// Connection Test with SQLite
$path = dirname(__FILE__)."/../test_dbs/test_sqlite.db";
try
{
$this->db = new ODBC("Driver=/usr/lib/libsqlite3odbc.so;Database={$path}");
}
catch(PDOException $e)
{
}
2012-02-02 19:04:10 -05:00
}
}