use phpbb_mock_lang instead:
https://github.com/phpbb/phpbb3/blob/develop/tests/mock/lang.php