[TYPO3-core] FYI72: Bug #15383 :[Unit tests]: Add tests for t3lib_div::validEmail

Marcus Krause marcus#exp2010 at t3sec.info
Sat Aug 7 08:19:59 CEST 2010


Hi!

Am 07.08.2010 03:16, schrieb Christian Kuhn:
> The following patch will be committed in 72 hours if nobody objects.
>
> Type: Unit test
>
> BT: http://bugs.typo3.org/view.php?id=15383
>
> Branches: 4.4, trunk
>
> Problem:
> It's unclear which subsets of according RFC's for valid / invalid email
> addresses are actually implemented by t3lib_div::validEmail().
>
> Solution:
> Add unit tests with edge cases to show what is actually reported as
> valid / invalid.
>
> Notes:
> Most tests are a rip off from php's unit tests for filter_var
> "FILTER_VALIDATE_EMAIL", but some are currently uncommented because php
> behaviour changed between minor and major versions. Those commented
> tests can put into action as soon as TYPO3's php version requirements
> raised and php settled in this regard, or if an own solution instead of
> php filters is implemented.

FYI: test#mail at example.com is a perfectly valid mail address but is 
missing in your tests.


Marcus.


More information about the TYPO3-team-core mailing list