MediaWiki REL1_28
|
Sanitizer::validateEmail. More...
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='') | |
Sanitizer::validateEmail.
Definition at line 8 of file SanitizerValidateEmailTest.php.
|
private |
Definition at line 10 of file SanitizerValidateEmailTest.php.
|
private |
Definition at line 26 of file SanitizerValidateEmailTest.php.
References checkEmail().
Referenced by testEmailDomainCanNotBeginWithDot(), testEmailWithCommasAreInvalids(), testEmailWithoutAtSignIsInvalid(), testEmailWithWhiteSpacesAreInvalids(), and testEmailWithWhiteSpacesBeforeOrAfterAreInvalids().
SanitizerValidateEmailTest::testEmailDoesNotNeedATopLevelDomain | ( | ) |
Definition at line 47 of file SanitizerValidateEmailTest.php.
References valid().
SanitizerValidateEmailTest::testEmailDomainCanNotBeginWithDot | ( | ) |
Definition at line 79 of file SanitizerValidateEmailTest.php.
SanitizerValidateEmailTest::testEmailTopLevelDomainCanBeNumerical | ( | ) |
Definition at line 92 of file SanitizerValidateEmailTest.php.
References valid().
SanitizerValidateEmailTest::testEmailWellKnownUserAtHostDotTldAreValid | ( | ) |
Definition at line 30 of file SanitizerValidateEmailTest.php.
References valid().
SanitizerValidateEmailTest::testEmailWithAPlusInUserName | ( | ) |
Definition at line 42 of file SanitizerValidateEmailTest.php.
References valid().
SanitizerValidateEmailTest::testEmailWithCommasAreInvalids | ( | ) |
bug 26948 : comma were matched by an incorrect regexp range
Definition at line 69 of file SanitizerValidateEmailTest.php.
References invalid().
SanitizerValidateEmailTest::testEmailWithFunnyCharacters | ( | ) |
Definition at line 88 of file SanitizerValidateEmailTest.php.
References valid().
SanitizerValidateEmailTest::testEmailWithHyphens | ( | ) |
Definition at line 74 of file SanitizerValidateEmailTest.php.
References valid().
SanitizerValidateEmailTest::testEmailWithOneCharacterDomainIsValid | ( | ) |
Definition at line 100 of file SanitizerValidateEmailTest.php.
References valid().
SanitizerValidateEmailTest::testEmailWithoutAtSignIsInvalid | ( | ) |
Definition at line 96 of file SanitizerValidateEmailTest.php.
References invalid().
SanitizerValidateEmailTest::testEmailWithUpperCaseCharactersAreValid | ( | ) |
Definition at line 35 of file SanitizerValidateEmailTest.php.
References valid().
SanitizerValidateEmailTest::testEmailWithWhiteSpacesAreInvalids | ( | ) |
Definition at line 60 of file SanitizerValidateEmailTest.php.
References invalid().
SanitizerValidateEmailTest::testEmailWithWhiteSpacesBeforeOrAfterAreInvalids | ( | ) |
Definition at line 53 of file SanitizerValidateEmailTest.php.
References invalid().
|
private |
Definition at line 22 of file SanitizerValidateEmailTest.php.
References checkEmail().
Referenced by testEmailDoesNotNeedATopLevelDomain(), testEmailDomainCanNotBeginWithDot(), testEmailTopLevelDomainCanBeNumerical(), testEmailWellKnownUserAtHostDotTldAreValid(), testEmailWithAPlusInUserName(), testEmailWithFunnyCharacters(), testEmailWithHyphens(), testEmailWithOneCharacterDomainIsValid(), and testEmailWithUpperCaseCharactersAreValid().