Fix test loading

This commit is contained in:
Timothy Warren 2012-04-13 13:34:25 -04:00
parent b559ec1bab
commit 05fb6f5277

View File

@ -20,16 +20,16 @@ define('OSL_BASE_DIR', str_replace(basename(OSL_TEST_DIR).'/', '', OSL_TEST_DIR)
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
// Include simpletest // Include db autoloader
// it has to be set in your php path, or put in the tests folder
require_once('simpletest/autorun.php');
require_once(OSL_BASE_DIR . 'db/autoload.php'); require_once(OSL_BASE_DIR . 'db/autoload.php');
// Include db tests
require_once(OSL_BASE_DIR . 'db/tests/index.php');
// Include core tests // Include core tests
array_map('do_include', glob(OSL_TEST_DIR . 'core/*.php')); array_map('do_include', glob(OSL_TEST_DIR . 'core/*.php'));
// Include required methods // Include required methods
array_map('do_include', glob(OSL_BASE_DIR . 'common/*.php')); array_map('do_include', glob(OSL_BASE_DIR . 'common/*.php'));
// Include db tests
require_once(OSL_BASE_DIR . 'db/tests/index.php');