diff options
author | Igor Wiedler <igor@wiedler.ch> | 2011-01-07 18:03:00 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2011-01-09 23:48:40 +0100 |
commit | 36e95f939db9b88b8519d956120d161102184ccb (patch) | |
tree | 10e4af590c4225c4c0512d93c27b76a753f02908 /tests/bootstrap.php | |
parent | 7129531bc0884a710e5d61ced2e0a54538f64266 (diff) | |
download | forums-36e95f939db9b88b8519d956120d161102184ccb.tar forums-36e95f939db9b88b8519d956120d161102184ccb.tar.gz forums-36e95f939db9b88b8519d956120d161102184ccb.tar.bz2 forums-36e95f939db9b88b8519d956120d161102184ccb.tar.xz forums-36e95f939db9b88b8519d956120d161102184ccb.zip |
[ticket/9979] Support autoloading in unit tests
PHPBB-9979
Diffstat (limited to 'tests/bootstrap.php')
-rw-r--r-- | tests/bootstrap.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 99f145e427..161bd83a3d 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -26,6 +26,10 @@ else } require_once $phpbb_root_path . 'includes/constants.php'; +require_once $phpbb_root_path . 'includes/class_loader.' . $phpEx; + +$class_loader = new phpbb_class_loader($phpbb_root_path, '.' . $phpEx); +$class_loader->register(); require_once 'test_framework/phpbb_test_case_helpers.php'; require_once 'test_framework/phpbb_test_case.php'; |