[ticket/11701] Test events in loops

PHPBB3-11701