[ticket/11600] Use local variable for $user in test_localize_errors

PHPBB3-11600