diff options
author | Urban Müller | 2022-03-28 15:51:01 +0200 |
---|---|---|
committer | Urban Müller | 2022-03-28 15:51:01 +0200 |
commit | 8d79006992b064fef8fcb13a1b3fe28a6aad774b (patch) | |
tree | 50f407272d0771ab84c299f5529fc46079c9fb27 /test/it_mail.t | |
parent | abb15d8eb591c12d9d71320f4e2b0ce682cd860e (diff) | |
download | itools-8d79006992b064fef8fcb13a1b3fe28a6aad774b.tar.gz itools-8d79006992b064fef8fcb13a1b3fe28a6aad774b.tar.bz2 itools-8d79006992b064fef8fcb13a1b3fe28a6aad774b.zip |
user filter_var instead of regex (thx chrigi), correctly ignore display names
Diffstat (limited to 'test/it_mail.t')
-rwxr-xr-x | test/it_mail.t | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/it_mail.t b/test/it_mail.t index 6a63268..8b9a316 100755 --- a/test/it_mail.t +++ b/test/it_mail.t @@ -99,3 +99,6 @@ is( null, "Accept valid e-mail addresses" ); + +foreach (['neuman@example', '"neuman@example.com" <neuman@example>'] as $email) + isnt(it_mail::address_error($email), null, "Reject invalid e-mail address $email"); |