[ticket/11620] Indentation and combine function into test_case

PHPBB3-11620
[ticket/11620] Indentation and combine function into test_case

PHPBB3-11620