[ticket/12620] Fix tests

PHPBB3-12620
[ticket/12620] Display error message when the environment isn't available

PHPBB3-12620