wiki.techinc.nl/tests/phpunit/includes
Antoine Musso ff5fb5ea3e Bug 26948 - hyphens incorrectly interpreted as range
This is the kind of easy to fix, hard to review bug. Email validation
make uses of strings listing characters, those strings are then
enclosed between brackets "[]". Inside brackets, the hyphen is used
to describe a range of character [a-d] being a b c d.
The string containing an unescaped hyphen, made JS/PHP validation
to match the incorrect comma ",".

* Backslash hyphen
* JS,PHP: add tests for commas and hyphens in username or domain
* JS: add var to rfc_1034_ldh_str
* JS: minor code cleanup

TESTS:

php phpunit.php -c suite.xml --filter ValidEmail
OK (13 tests, 32 assertions)

Special:BlankPage?action=mwutiltest&debug=true
Ran 66 tests. 66 passed test(s). 0 error(s). 0 partially passed test(s).
2011-01-27 20:52:12 +00:00
..
api Mark as needing a Database, as noted in r79532 CR. 2011-01-13 17:51:25 +00:00
db * verbose and color default output from phpunit 2010-12-28 18:17:16 +00:00
parser * Replaced $wgMessageCache by MessageCache::singleton(); since we only use one instance of this class (as for ParserCache, LinkCache) 2011-01-26 15:42:04 +00:00
search * verbose and color default output from phpunit 2010-12-28 18:17:16 +00:00
ArticleTablesTest.php Don't error no matter if the article exists or not. 2010-12-29 15:15:56 +00:00
BlockTest.php Follow up r79109. 2010-12-29 15:01:47 +00:00
CdbTest.php * verbose and color default output from phpunit 2010-12-28 18:17:16 +00:00
ExternalStoreTest.php * verbose and color default output from phpunit 2010-12-28 18:17:16 +00:00
ExtraParserTest.php preSaveTransform() needs $wgTitle. 2011-01-23 18:43:08 +00:00
GlobalTest.php Forcing array breaks MWFunction with <2 parameters 2011-01-04 01:51:48 +00:00
HooksTest.php Followup to r80435: Forgot the svn add 2011-01-17 16:43:12 +00:00
HttpTest.php * verbose and color default output from phpunit 2010-12-28 18:17:16 +00:00
ImageFunctionsTest.php * verbose and color default output from phpunit 2010-12-28 18:17:16 +00:00
IPTest.php -Set configuration automatically if not set. This allows for evasion of the makefile, ergo, more control. 2010-12-29 05:38:11 +00:00
JsonTest.php Add JSON test case 2011-01-03 21:14:51 +00:00
LanguageConverterTest.php * verbose and color default output from phpunit 2010-12-28 18:17:16 +00:00
LicensesTest.php * verbose and color default output from phpunit 2010-12-28 18:17:16 +00:00
LocalFileTest.php Follow up r79109. 2010-12-29 15:01:47 +00:00
MessageTest.php * Replaced $wgMessageCache by MessageCache::singleton(); since we only use one instance of this class (as for ParserCache, LinkCache) 2011-01-26 15:42:04 +00:00
MWFunctionTest.php Followup r79523: Test that calling self:: and parent:: throws exception 2011-01-03 21:14:22 +00:00
NewDBTest.php Follow up r79109. 2010-12-29 15:01:47 +00:00
ParserOptionsTest.php * verbose and color default output from phpunit 2010-12-28 18:17:16 +00:00
ResourceLoaderFileModuleTest.php * verbose and color default output from phpunit 2010-12-28 18:17:16 +00:00
ResourceLoaderTest.php ResourceLoader::register() works differently since r77011. 2010-12-30 16:16:16 +00:00
RevisionTest.php * verbose and color default output from phpunit 2010-12-28 18:17:16 +00:00
SampleTest.php * verbose and color default output from phpunit 2010-12-28 18:17:16 +00:00
SanitizerTest.php * verbose and color default output from phpunit 2010-12-28 18:17:16 +00:00
SeleniumConfigurationTest.php * verbose and color default output from phpunit 2010-12-28 18:17:16 +00:00
SiteConfigurationTest.php * verbose and color default output from phpunit 2010-12-28 18:17:16 +00:00
TimeAdjustTest.php * verbose and color default output from phpunit 2010-12-28 18:17:16 +00:00
TitlePermissionTest.php * Replaced $wgMessageCache by MessageCache::singleton(); since we only use one instance of this class (as for ParserCache, LinkCache) 2011-01-26 15:42:04 +00:00
TitleTest.php * verbose and color default output from phpunit 2010-12-28 18:17:16 +00:00
UploadFromUrlTest.php Fix r79532: Strct standards 2011-01-04 11:58:17 +00:00
UploadTest.php Test uploading a file of size $wgMaxUploadSize 2011-01-25 21:26:28 +00:00
UserIsValidEmailAddrTest.php Bug 26948 - hyphens incorrectly interpreted as range 2011-01-27 20:52:12 +00:00
XmlTest.php * verbose and color default output from phpunit 2010-12-28 18:17:16 +00:00