Project

General

Profile

Actions

Bug #21649

closed

[Unit tests]: Add tests for t3lib_div::validEmail

Added by Christian Kuhn over 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-08-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The following patch will be committed in 72 hours if nobody objects.

Type: Unit test

BT:

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.

(issue imported from #M15383)


Files

15383_01.diff (3.49 KB) 15383_01.diff Administrator Admin, 2010-08-07 03:10
Actions

Also available in: Atom PDF