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/index.php

32 lines
908 B
PHP
Raw Normal View History

<?php
/**
* OpenSQLManager
*
* Free Database manager for Open Source Databases
*
2012-04-20 13:30:27 -04:00
* @package OpenSQLManager
* @author Timothy J. Warren
* @copyright Copyright (c) 2012
* @link https://github.com/aviat4ion/OpenSQLManager
2012-03-28 12:20:18 -04:00
* @license http://philsturgeon.co.uk/code/dbad-license
*/
// --------------------------------------------------------------------------
/**
* Unit test bootstrap - Using php simpletest
*/
2012-04-13 13:21:06 -04:00
define('OSL_TEST_DIR', dirname(__FILE__).'/');
2012-11-30 09:24:03 -05:00
define('OSL_BASE_DIR', str_replace(basename(OSL_TEST_DIR).'/', '', OSL_TEST_DIR).'src/sys/');
2012-02-02 19:04:10 -05:00
2012-04-09 14:26:55 -04:00
// --------------------------------------------------------------------------
2012-04-13 13:34:25 -04:00
// Include db autoloader
2012-04-13 13:21:06 -04:00
require_once(OSL_BASE_DIR . 'db/autoload.php');
2012-02-02 19:04:10 -05:00
2012-04-13 13:34:25 -04:00
// Include db tests
require_once(OSL_BASE_DIR . 'db/tests/index.php');
2012-05-31 16:39:31 -04:00
// Settings Tests
require_once(OSL_BASE_DIR . 'common/settings.php');
require_once(OSL_TEST_DIR . 'settings.php');