[ticket/12514] Fix array formatting for tests

PHPBB3-12514