MediaWiki  REL1_22
SanitizerValidateEmailTest Class Reference

Sanitizer::validateEmail all test methods in this class should be refactored and... More...

Inheritance diagram for SanitizerValidateEmailTest:
Collaboration diagram for SanitizerValidateEmailTest:

List of all members.

Public Member Functions

 testEmailDoesNotNeedATopLevelDomain ()
 testEmailDomainCanNotBeginWithDot ()
 testEmailTopLevelDomainCanBeNumerical ()
 testEmailWellKnownUserAtHostDotTldAreValid ()
 testEmailWithAPlusInUserName ()
 testEmailWithCommasAreInvalids ()
 bug 26948 : comma were matched by an incorrect regexp range
 testEmailWithFunnyCharacters ()
 testEmailWithHyphens ()
 testEmailWithOneCharacterDomainIsValid ()
 testEmailWithoutAtSignIsInvalid ()
 testEmailWithUpperCaseCharactersAreValid ()
 testEmailWithWhiteSpacesAreInvalids ()
 testEmailWithWhiteSpacesBeforeOrAfterAreInvalids ()

Private Member Functions

 checkEmail ($addr, $expected=true, $msg= '')
 invalid ($addr, $msg= '')
 valid ($addr, $msg= '')

Detailed Description

Sanitizer::validateEmail all test methods in this class should be refactored and...

use a single test method and a single data provider...

Definition at line 8 of file SanitizerValidateEmailTest.php.


Member Function Documentation

SanitizerValidateEmailTest::checkEmail ( addr,
expected = true,
msg = '' 
) [private]

Definition at line 10 of file SanitizerValidateEmailTest.php.

References Sanitizer\validateEmail().

Referenced by invalid(), and valid().

bug 26948 : comma were matched by an incorrect regexp range

Definition at line 69 of file SanitizerValidateEmailTest.php.

References invalid().


The documentation for this class was generated from the following file: