summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorUrban Müller2022-03-28 18:16:33 +0200
committerUrban Müller2022-03-28 18:16:33 +0200
commit46e79a9468ca88b51c1a8982b600f243ce0a6ffe (patch)
tree18f5464cba5f155757a0cfba1d2aa3bd950191dd /test
parent8d79006992b064fef8fcb13a1b3fe28a6aad774b (diff)
downloaditools-46e79a9468ca88b51c1a8982b600f243ce0a6ffe.tar.gz
itools-46e79a9468ca88b51c1a8982b600f243ce0a6ffe.tar.bz2
itools-46e79a9468ca88b51c1a8982b600f243ce0a6ffe.zip
handle missing closing bracket, remove blanks around email (filter_var balks)
Diffstat (limited to 'test')
-rwxr-xr-xtest/it_mail.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/it_mail.t b/test/it_mail.t
index 8b9a316..7e892c2 100755
--- a/test/it_mail.t
+++ b/test/it_mail.t
@@ -95,10 +95,10 @@ is(
);
is(
- it_mail::address_error('neuman@example.com, <neuman@example.com>, "Neuman, Alfred E." <neuman@example.com>, aneuman'),
+ it_mail::address_error('neuman@example.com, <neuman@example.com>, "Neuman, Alfred E." <neuman@example.com>, aneuman, "<neuman@example>" <neuman@example.com>', " neumann@example.com"),
null,
"Accept valid e-mail addresses"
);
-foreach (['neuman@example', '"neuman@example.com" <neuman@example>'] as $email)
+foreach (['neuman@example', '"neuman@example.com" <neuman@example>', '<neuma@example.com'] as $email)
isnt(it_mail::address_error($email), null, "Reject invalid e-mail address $email");