[ticket/11832] update_web_root_path helper and tests

PHPBB3-11832