diff options
author | Lukas Winkler <git@lw1.at> | 2019-07-14 23:06:04 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-07-14 23:06:04 +0300 |
commit | 0d9978be99479cf2b33720fca944947c6cbffeec (patch) | |
tree | 57b3ebadae1264edea67c83da7eff4368b83e235 /tests | |
parent | 71932a7ce95eef0af224dd793a037a66b4970a1d (diff) |
use PHP filter to validate E-Mails (#14476)
* use PHP filter to validate E-Mails
* remove failing test
* only test with ASCII TLDs as others seem to fail
* remove Zend_Validate_EmailAddress config and class
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PHPUnit/Integration/EmailValidatorTest.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/PHPUnit/Integration/EmailValidatorTest.php b/tests/PHPUnit/Integration/EmailValidatorTest.php index 874e3e666b..34ccf69e2b 100644 --- a/tests/PHPUnit/Integration/EmailValidatorTest.php +++ b/tests/PHPUnit/Integration/EmailValidatorTest.php @@ -60,7 +60,7 @@ class EmailValidatorTest extends \PHPUnit_Framework_TestCase if (strpos(mb_strtolower($tld), 'xn--') !== 0) { $tld = mb_strtolower($tld); } - $domainNameExtension = idn_to_utf8($tld, 0, INTL_IDNA_VARIANT_UTS46); + $domainNameExtension = idn_to_ascii($tld, 0, INTL_IDNA_VARIANT_UTS46); $email = 'test@example.' . $domainNameExtension; if(!$this->isValid($email)) { @@ -143,11 +143,6 @@ class EmailValidatorTest extends \PHPUnit_Framework_TestCase $this->assertTrue($this->isValid('{_test_}@example.com')); } - public function test_isValid_validQuotedLocalPart() - { - $this->assertTrue($this->isValid('"[[ test ]]"@example.com')); - } - public function test_isValid_validAtomisedLocalPart() { $this->assertTrue($this->isValid('test.test@example.com')); |