I'll make a test for this function if this PR is merged first: https://github.com/phpbb/phpbb3/pull/1617