[ticket/11579] Add basic set of unit tests for validate_data()

This currently includes tests for all validate_* functions in functions_user.php except phpbb_validate_hex_colour().

Ticket: http://tracker.phpbb.com/browse/PHPBB3-11579

PHPBB3-11579