MediaWiki REL1_31
|
Sanitizer::validateEmail. More...
Public Member Functions | |
testEmailDoesNotNeedATopLevelDomain () | |
testEmailDomainCanNotBeginWithDot () | |
testEmailTopLevelDomainCanBeNumerical () | |
testEmailWellKnownUserAtHostDotTldAreValid () | |
testEmailWithAPlusInUserName () | |
testEmailWithCommasAreInvalids () | |
T28948 : 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='') | |
Sanitizer::validateEmail.
Definition at line 8 of file SanitizerValidateEmailTest.php.
|
private |
Definition at line 12 of file SanitizerValidateEmailTest.php.
|
private |
Definition at line 28 of file SanitizerValidateEmailTest.php.
References checkEmail().
Referenced by testEmailDomainCanNotBeginWithDot(), testEmailWithCommasAreInvalids(), testEmailWithoutAtSignIsInvalid(), testEmailWithWhiteSpacesAreInvalids(), and testEmailWithWhiteSpacesBeforeOrAfterAreInvalids().
SanitizerValidateEmailTest::testEmailDoesNotNeedATopLevelDomain | ( | ) |
Definition at line 49 of file SanitizerValidateEmailTest.php.
References valid().
SanitizerValidateEmailTest::testEmailDomainCanNotBeginWithDot | ( | ) |
Definition at line 81 of file SanitizerValidateEmailTest.php.
SanitizerValidateEmailTest::testEmailTopLevelDomainCanBeNumerical | ( | ) |
Definition at line 94 of file SanitizerValidateEmailTest.php.
References valid().
SanitizerValidateEmailTest::testEmailWellKnownUserAtHostDotTldAreValid | ( | ) |
Definition at line 32 of file SanitizerValidateEmailTest.php.
References valid().
SanitizerValidateEmailTest::testEmailWithAPlusInUserName | ( | ) |
Definition at line 44 of file SanitizerValidateEmailTest.php.
References valid().
SanitizerValidateEmailTest::testEmailWithCommasAreInvalids | ( | ) |
T28948 : comma were matched by an incorrect regexp range.
Definition at line 71 of file SanitizerValidateEmailTest.php.
References invalid().
SanitizerValidateEmailTest::testEmailWithFunnyCharacters | ( | ) |
Definition at line 90 of file SanitizerValidateEmailTest.php.
References valid().
SanitizerValidateEmailTest::testEmailWithHyphens | ( | ) |
Definition at line 76 of file SanitizerValidateEmailTest.php.
References valid().
SanitizerValidateEmailTest::testEmailWithOneCharacterDomainIsValid | ( | ) |
Definition at line 102 of file SanitizerValidateEmailTest.php.
References valid().
SanitizerValidateEmailTest::testEmailWithoutAtSignIsInvalid | ( | ) |
Definition at line 98 of file SanitizerValidateEmailTest.php.
References invalid().
SanitizerValidateEmailTest::testEmailWithUpperCaseCharactersAreValid | ( | ) |
Definition at line 37 of file SanitizerValidateEmailTest.php.
References valid().
SanitizerValidateEmailTest::testEmailWithWhiteSpacesAreInvalids | ( | ) |
Definition at line 62 of file SanitizerValidateEmailTest.php.
References invalid().
SanitizerValidateEmailTest::testEmailWithWhiteSpacesBeforeOrAfterAreInvalids | ( | ) |
Definition at line 55 of file SanitizerValidateEmailTest.php.
References invalid().
|
private |
Definition at line 24 of file SanitizerValidateEmailTest.php.
References checkEmail().
Referenced by testEmailDoesNotNeedATopLevelDomain(), testEmailDomainCanNotBeginWithDot(), testEmailTopLevelDomainCanBeNumerical(), testEmailWellKnownUserAtHostDotTldAreValid(), testEmailWithAPlusInUserName(), testEmailWithFunnyCharacters(), testEmailWithHyphens(), testEmailWithOneCharacterDomainIsValid(), and testEmailWithUpperCaseCharactersAreValid().