gnu-social/tests
Brion Vibber 0841fa712e Ticket #1281: JID validation now more or less follows spec instead of calling e-mail validator
Basic splitting/validation code submitted via http://status.net/wiki/XMPP/JID_validation -- Copyright 2009 Patrick Georgi <patrick@georgi-clan.de> Licensed under ISC-L, which is compatible with everything else that keeps the copyright notice intact.

Added PEAR Net_IDNA package to extlib to handle IDN normalization (also used by Validate's email verifier if present).

* added test suite, supplemented my own test cases with JID validation and normalization test cases from libpurple
* follows XMPP rules for validation of name part
* fixes for normalization with non-ASCII names
* will do domain checks if $config['email']['check_domain'] is on, checking for an XMPP-server SRV record or any lookup. (We don't actually need to ping those direct though.)
* some more obscure stringprep validation rules aren't quite followed yet, but we err on the side of permissiveness.
* we still don't actually let you save your address with a resource on it, as we strip resources when looking up users who've sent us presence or message updates. I would recommend saving the outgoing resource as a separate field if/when we add that..?
2010-03-30 17:35:27 -07:00
..
oauth Test script to update your status via OAuth 2010-01-27 09:59:40 +00:00
ActivityParseTests.php reverse order of activity parse test arguments 2010-03-27 22:43:18 -04:00
CurryTest.php PHP 5.3 closure-based implementation of curry(); old implementation used as fallback for older PHP versions. Added unit tests to confirm they both work! 2009-12-16 09:27:48 -05:00
HashTagDetectionTests.php Fix some bugs in the URL linkification, and fixed the unit test. 2009-09-27 16:52:15 -04:00
JidValidateTest.php Ticket #1281: JID validation now more or less follows spec instead of calling e-mail validator 2010-03-30 17:35:27 -07:00
LocationTest.php Renaming GeonamesPlugin::NAMESPACE to GeonamesPlugin::LOCATION_NS to avoid parse errors; 'namespace' is a reserved keyword in PHP 5.3 and later. 2009-11-17 16:56:43 -08:00
TagURITest.php Add a library to mint tag URIs 2010-02-20 13:23:08 -05:00
URLDetectionTest.php fix the [] unit tests 2009-11-02 12:53:02 -05:00
UserFeedParseTest.php Some initial media parsing 2010-03-22 18:55:17 -07:00
UserRightsTest.php Fix UserRightsTest unit tests 2009-12-16 09:27:48 -05:00