aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bootstrap.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-07-08 22:33:27 +0200
committerAndreas Fischer <bantu@phpbb.com>2012-07-08 22:33:27 +0200
commit932428086ecfa9cdd2c27cb185da7e22420e602d (patch)
treeedb57fc1af02045ed38b2eebd3a330b95cfdb08b /tests/bootstrap.php
parent576cd6dd1e45171e998d6aa13ab74b73939ce084 (diff)
downloadforums-932428086ecfa9cdd2c27cb185da7e22420e602d.tar
forums-932428086ecfa9cdd2c27cb185da7e22420e602d.tar.gz
forums-932428086ecfa9cdd2c27cb185da7e22420e602d.tar.bz2
forums-932428086ecfa9cdd2c27cb185da7e22420e602d.tar.xz
forums-932428086ecfa9cdd2c27cb185da7e22420e602d.zip
[ticket/10973] Add autoloader for autoloading phpbb_mock_ in tests.
PHPBB3-10973
Diffstat (limited to 'tests/bootstrap.php')
-rw-r--r--tests/bootstrap.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index f103d8f15a..1017e0c72f 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -16,6 +16,8 @@ $table_prefix = 'phpbb_';
require_once $phpbb_root_path . 'includes/constants.php';
require_once $phpbb_root_path . 'includes/class_loader.' . $phpEx;
+$phpbb_class_loader_mock = new phpbb_class_loader('phpbb_mock_', $phpbb_root_path . '../tests/mock/', ".php");
+$phpbb_class_loader_mock->register();
$phpbb_class_loader_ext = new phpbb_class_loader('phpbb_ext_', $phpbb_root_path . 'ext/', ".php");
$phpbb_class_loader_ext->register();
$phpbb_class_loader = new phpbb_class_loader('phpbb_', $phpbb_root_path . 'includes/', ".php");