MediaWiki
REL1_22
|
Sanitizer::validateEmail all test methods in this class should be refactored and... 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 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.
SanitizerValidateEmailTest::checkEmail | ( | $ | addr, |
$ | expected = true , |
||
$ | msg = '' |
||
) | [private] |
Definition at line 10 of file SanitizerValidateEmailTest.php.
References Sanitizer\validateEmail().
SanitizerValidateEmailTest::invalid | ( | $ | addr, |
$ | msg = '' |
||
) | [private] |
Definition at line 26 of file SanitizerValidateEmailTest.php.
References checkEmail().
Referenced by testEmailDomainCanNotBeginWithDot(), testEmailWithCommasAreInvalids(), testEmailWithoutAtSignIsInvalid(), testEmailWithWhiteSpacesAreInvalids(), and testEmailWithWhiteSpacesBeforeOrAfterAreInvalids().
Definition at line 47 of file SanitizerValidateEmailTest.php.
References valid().
Definition at line 79 of file SanitizerValidateEmailTest.php.
Definition at line 92 of file SanitizerValidateEmailTest.php.
References valid().
Definition at line 30 of file SanitizerValidateEmailTest.php.
References valid().
Definition at line 42 of file SanitizerValidateEmailTest.php.
References valid().
bug 26948 : comma were matched by an incorrect regexp range
Definition at line 69 of file SanitizerValidateEmailTest.php.
References invalid().
Definition at line 88 of file SanitizerValidateEmailTest.php.
References valid().
Definition at line 74 of file SanitizerValidateEmailTest.php.
References valid().
Definition at line 100 of file SanitizerValidateEmailTest.php.
References valid().
Definition at line 96 of file SanitizerValidateEmailTest.php.
References invalid().
Definition at line 35 of file SanitizerValidateEmailTest.php.
References valid().
Definition at line 60 of file SanitizerValidateEmailTest.php.
References invalid().
Definition at line 53 of file SanitizerValidateEmailTest.php.
References invalid().
SanitizerValidateEmailTest::valid | ( | $ | addr, |
$ | msg = '' |
||
) | [private] |
Definition at line 22 of file SanitizerValidateEmailTest.php.
References checkEmail().
Referenced by testEmailDoesNotNeedATopLevelDomain(), testEmailDomainCanNotBeginWithDot(), testEmailTopLevelDomainCanBeNumerical(), testEmailWellKnownUserAtHostDotTldAreValid(), testEmailWithAPlusInUserName(), testEmailWithFunnyCharacters(), testEmailWithHyphens(), testEmailWithOneCharacterDomainIsValid(), and testEmailWithUpperCaseCharactersAreValid().