2010-03-10 16:24:19 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @package testing
|
|
|
|
* @copyright (c) 2008 phpBB Group
|
2011-12-31 16:05:02 +00:00
|
|
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
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';
|
|
|
|
|
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-04-21 04:37:57 -05:00
|
|
|
|
|
|
|
if (version_compare(PHP_VERSION, '5.3.0-dev', '>='))
|
|
|
|
{
|
2012-07-16 17:33:05 +01:00
|
|
|
if (getenv('PHPBB_NO_COMPOSER_AUTOLOAD'))
|
|
|
|
{
|
|
|
|
if (getenv('PHPBB_AUTOLOAD'))
|
|
|
|
{
|
|
|
|
require(getenv('PHPBB_AUTOLOAD'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (!file_exists($phpbb_root_path . 'vendor/autoload.php'))
|
|
|
|
{
|
|
|
|
trigger_error('You have not set up composer dependencies. See http://getcomposer.org/.', E_USER_ERROR);
|
|
|
|
}
|
|
|
|
require($phpbb_root_path . 'vendor/autoload.php');
|
|
|
|
}
|
2012-04-21 04:37:57 -05:00
|
|
|
require_once 'test_framework/phpbb_functional_test_case.php';
|
|
|
|
}
|