MediaWiki
REL1_19
|
Public Member Functions | |
testEmailDoesNotNeedATopLevelDomain () | |
testEmailDomainCanNotBeginWithDot () | |
testEmailTopLevelDomainCanBeNumerical () | |
testEmailWellKnownUserAtHostDotTldAreValid () | |
testEmailWithAPlusInUserName () | |
testEmailWithCommasAreInvalids () | |
testEmailWithFunnyCharacters () | |
testEmailWithHyphens () | |
testEmailWithOneCharacterDomainIsValid () | |
testEmailWithoutAtSignIsInvalid () | |
testEmailWithUpperCaseCharactersAreValid () | |
testEmailWithWhiteSpacesAreInvalids () | |
testEmailWithWhiteSpacesBeforeOrAfterAreInvalids () | |
Private Member Functions | |
checkEmail ($addr, $expected=true, $msg= '') | |
invalid ($addr, $msg= '') | |
valid ($addr, $msg= '') |
Definition at line 3 of file SanitizerValidateEmailTest.php.
SanitizerValidateEmailTest::checkEmail | ( | $ | addr, |
$ | expected = true , |
||
$ | msg = '' |
||
) | [private] |
Definition at line 5 of file SanitizerValidateEmailTest.php.
References Sanitizer\validateEmail().
Referenced by invalid(), and valid().
SanitizerValidateEmailTest::invalid | ( | $ | addr, |
$ | msg = '' |
||
) | [private] |
Definition at line 16 of file SanitizerValidateEmailTest.php.
References checkEmail().
Referenced by testEmailDomainCanNotBeginWithDot(), testEmailWithCommasAreInvalids(), testEmailWithoutAtSignIsInvalid(), testEmailWithWhiteSpacesAreInvalids(), and testEmailWithWhiteSpacesBeforeOrAfterAreInvalids().
Definition at line 34 of file SanitizerValidateEmailTest.php.
References valid().
Definition at line 59 of file SanitizerValidateEmailTest.php.
References invalid(), and valid().
Definition at line 70 of file SanitizerValidateEmailTest.php.
References valid().
Definition at line 20 of file SanitizerValidateEmailTest.php.
References valid().
Definition at line 30 of file SanitizerValidateEmailTest.php.
References valid().
Definition at line 51 of file SanitizerValidateEmailTest.php.
References invalid().
Definition at line 67 of file SanitizerValidateEmailTest.php.
References valid().
Definition at line 55 of file SanitizerValidateEmailTest.php.
References valid().
Definition at line 76 of file SanitizerValidateEmailTest.php.
References valid().
Definition at line 73 of file SanitizerValidateEmailTest.php.
References invalid().
Definition at line 24 of file SanitizerValidateEmailTest.php.
References valid().
Definition at line 45 of file SanitizerValidateEmailTest.php.
References invalid().
Definition at line 39 of file SanitizerValidateEmailTest.php.
References invalid().
SanitizerValidateEmailTest::valid | ( | $ | addr, |
$ | msg = '' |
||
) | [private] |
Definition at line 13 of file SanitizerValidateEmailTest.php.
References checkEmail().
Referenced by testEmailDoesNotNeedATopLevelDomain(), testEmailDomainCanNotBeginWithDot(), testEmailTopLevelDomainCanBeNumerical(), testEmailWellKnownUserAtHostDotTldAreValid(), testEmailWithAPlusInUserName(), testEmailWithFunnyCharacters(), testEmailWithHyphens(), testEmailWithOneCharacterDomainIsValid(), and testEmailWithUpperCaseCharactersAreValid().