Ticket/develop/11543 Add unit tests for obtain online functions

http://tracker.phpbb.com/browse/PHPBB3-11543
Olympus PR: https://github.com/phpbb/phpbb3/pull/1413