aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework/phpbb_ui_test_case.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_framework/phpbb_ui_test_case.php')
-rw-r--r--tests/test_framework/phpbb_ui_test_case.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_framework/phpbb_ui_test_case.php b/tests/test_framework/phpbb_ui_test_case.php
index e79c78db29..c8ca2a9003 100644
--- a/tests/test_framework/phpbb_ui_test_case.php
+++ b/tests/test_framework/phpbb_ui_test_case.php
@@ -261,7 +261,8 @@ class phpbb_ui_test_case extends phpbb_test_case
$blacklist = ['phpbb_class_loader_mock', 'phpbb_class_loader_ext', 'phpbb_class_loader'];
- foreach (array_keys($GLOBALS) as $key) {
+ foreach (array_keys($GLOBALS) as $key)
+ {
if (is_object($GLOBALS[$key]) && !in_array($key, $blacklist, true))
{
unset($GLOBALS[$key]);