summaryrefslogtreecommitdiff
path: root/test/it_mail.t
diff options
context:
space:
mode:
authorUrban Müller2022-03-28 15:51:01 +0200
committerUrban Müller2022-03-28 15:51:01 +0200
commit8d79006992b064fef8fcb13a1b3fe28a6aad774b (patch)
tree50f407272d0771ab84c299f5529fc46079c9fb27 /test/it_mail.t
parentabb15d8eb591c12d9d71320f4e2b0ce682cd860e (diff)
downloaditools-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-xtest/it_mail.t3
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");