Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 29
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2/**
3*
4* This file is part of the phpBB Forum Software package.
5*
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
7* @license GNU General Public License, version 2 (GPL-2.0)
8*
9* For full copyright and license information, please see
10* the docs/CREDITS.txt file.
11*
12*/
13
14define('IN_PHPBB', true);
15define('PHPBB_ENVIRONMENT', 'test');
16
17global $phpbb_class_loader, $phpbb_class_loader_mock, $phpbb_class_loader_ext, $phpbb_class_loader_tests;
18global $phpbb_root_path, $phpEx, $table_prefix;
19
20$phpbb_root_path = 'phpBB/';
21$phpEx = 'php';
22$table_prefix = 'phpbb_';
23
24require_once $phpbb_root_path . 'includes/startup.php';
25require_once $phpbb_root_path . 'includes/constants.php';
26require_once $phpbb_root_path . 'phpbb/class_loader.' . $phpEx;
27require_once $phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx;
28require_once $phpbb_root_path . 'includes/functions.' . $phpEx;
29require_once $phpbb_root_path . 'includes/functions_content.' . $phpEx;
30require_once $phpbb_root_path . 'includes/functions_compatibility.' . $phpEx;
31
32$phpbb_class_loader_mock = new \phpbb\class_loader('phpbb_mock_', $phpbb_root_path . '../tests/mock/', "php");
33$phpbb_class_loader_mock->register();
34$phpbb_class_loader_ext = new \phpbb\class_loader('\\', $phpbb_root_path . 'ext/', "php");
35$phpbb_class_loader_ext->register();
36$phpbb_class_loader = new \phpbb\class_loader('phpbb\\', $phpbb_root_path . 'phpbb/', "php");
37$phpbb_class_loader->register();
38$phpbb_class_loader_tests = new \phpbb\class_loader('phpbb\\tests\\', $phpbb_root_path . '../tests/', 'php');
39$phpbb_class_loader_tests->register();
40
41require_once 'test_framework/phpbb_test_case_helpers.php';
42require_once 'test_framework/phpbb_test_case.php';
43require_once 'test_framework/phpbb_database_test_case.php';
44require_once 'test_framework/phpbb_database_test_connection_manager.php';
45require_once 'test_framework/phpbb_functional_test_case.php';
46
47if (file_exists(__DIR__ . '/vendor/autoload.php'))
48{
49    require_once __DIR__ . '/vendor/autoload.php';
50}