2010-03-10 16:24:19 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
*
|
2014-05-27 20:18:06 +02:00
|
|
|
* This file is part of the phpBB Forum Software package.
|
|
|
|
*
|
|
|
|
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
|
|
|
* @license GNU General Public License, version 2 (GPL-2.0)
|
|
|
|
*
|
|
|
|
* For full copyright and license information, please see
|
|
|
|
* the docs/CREDITS.txt file.
|
2010-03-10 16:24:19 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
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';
|
2012-02-04 00:31:59 +01:00
|
|
|
require_once $phpbb_root_path . 'includes/startup.php';
|
2010-03-10 16:24:19 +01:00
|
|
|
|
2012-02-04 00:31:59 +01:00
|
|
|
$table_prefix = 'phpbb_';
|
2010-03-10 16:24:19 +01:00
|
|
|
require_once $phpbb_root_path . 'includes/constants.php';
|
2013-07-14 01:32:34 -04:00
|
|
|
require_once $phpbb_root_path . 'phpbb/class_loader.' . $phpEx;
|
2011-01-07 18:03:00 +01:00
|
|
|
|
2013-07-14 16:21:59 -04:00
|
|
|
$phpbb_class_loader_mock = new \phpbb\class_loader('phpbb_mock_', $phpbb_root_path . '../tests/mock/', "php");
|
2012-07-08 22:33:27 +02:00
|
|
|
$phpbb_class_loader_mock->register();
|
2013-09-19 18:29:08 +02:00
|
|
|
$phpbb_class_loader_ext = new \phpbb\class_loader('\\', $phpbb_root_path . 'ext/', "php");
|
2011-08-15 21:38:47 -04:00
|
|
|
$phpbb_class_loader_ext->register();
|
2013-07-14 16:21:59 -04:00
|
|
|
$phpbb_class_loader = new \phpbb\class_loader('phpbb\\', $phpbb_root_path . 'phpbb/', "php");
|
2011-08-15 21:38:47 -04:00
|
|
|
$phpbb_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';
|
2012-03-22 00:06:46 +00:00
|
|
|
require_once 'test_framework/phpbb_functional_test_case.php';
|