2010-03-10 16:24:19 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @package testing
|
|
|
|
* @copyright (c) 2008 phpBB Group
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
define('IN_PHPBB', true);
|
2011-01-03 22:21:54 +01:00
|
|
|
$phpbb_root_path = 'phpBB/';
|
2010-03-10 16:24:19 +01:00
|
|
|
$phpEx = 'php';
|
2011-01-04 17:14:36 +01:00
|
|
|
$table_prefix = 'phpbb_';
|
2010-03-10 16:24:19 +01:00
|
|
|
|
2011-03-07 16:25:52 +01:00
|
|
|
if (!defined('E_DEPRECATED'))
|
|
|
|
{
|
|
|
|
define('E_DEPRECATED', 8192);
|
|
|
|
}
|
2011-01-07 00:16:28 +01:00
|
|
|
error_reporting(E_ALL & ~E_DEPRECATED);
|
|
|
|
|
2010-03-10 16:24:19 +01:00
|
|
|
// If we are on PHP >= 6.0.0 we do not need some code
|
|
|
|
if (version_compare(PHP_VERSION, '6.0.0-dev', '>='))
|
|
|
|
{
|
|
|
|
define('STRIP', false);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
@set_magic_quotes_runtime(0);
|
|
|
|
define('STRIP', (get_magic_quotes_gpc()) ? true : false);
|
|
|
|
}
|
|
|
|
|
|
|
|
require_once $phpbb_root_path . 'includes/constants.php';
|
2011-01-07 18:03:00 +01:00
|
|
|
require_once $phpbb_root_path . 'includes/class_loader.' . $phpEx;
|
|
|
|
|
2010-11-03 18:35:31 +01:00
|
|
|
$class_loader = new phpbb_class_loader($phpbb_root_path, '.php');
|
2011-01-07 18:03:00 +01:00
|
|
|
$class_loader->register();
|
2010-03-10 16:24:19 +01:00
|
|
|
|
2010-03-26 16:39:37 +01:00
|
|
|
require_once 'test_framework/phpbb_test_case_helpers.php';
|
2010-03-10 16:24:19 +01:00
|
|
|
require_once 'test_framework/phpbb_test_case.php';
|
2010-03-26 16:39:37 +01:00
|
|
|
require_once 'test_framework/phpbb_database_test_case.php';
|
2011-02-14 00:00:59 +01:00
|
|
|
require_once 'test_framework/phpbb_database_test_connection_manager.php';
|