[ticket/12508] Fix class doc block

PHPBB3-12508
[ticket/12508] Only take a list of names for set_extensions()

PHPBB3-12508
[ticket/12508] Add a unit test for set_extensions()

PHPBB3-12508