From 8d79006992b064fef8fcb13a1b3fe28a6aad774b Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 28 Mar 2022 15:51:01 +0200 Subject: user filter_var instead of regex (thx chrigi), correctly ignore display names --- test/it_mail.t | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') 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" '] as $email) + isnt(it_mail::address_error($email), null, "Reject invalid e-mail address $email"); -- cgit v1.2.3