From ff7c981d1927134809729ab164e6c23e9f63781d Mon Sep 17 00:00:00 2001 From: Matteo Beccati Date: Wed, 6 Jul 2016 07:08:43 +0200 Subject: [PATCH] Rewrite test to avoid sending emails A properly configured email server was generating bounce emails when running the test. --- ext/pcre/tests/bug72463.phpt | 12 +++++++----- ext/pcre/tests/bug72463_2.phpt | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 ext/pcre/tests/bug72463_2.phpt diff --git a/ext/pcre/tests/bug72463.phpt b/ext/pcre/tests/bug72463.phpt index 3d38494917..b40a721998 100644 --- a/ext/pcre/tests/bug72463.phpt +++ b/ext/pcre/tests/bug72463.phpt @@ -1,13 +1,15 @@ --TEST-- Bug #72463 mail fails with invalid argument ---FILE-- +--SKIPIF-- /dev/null"); + die('skip not for windows'); } +?> +--INI-- +sendmail_path="echo >/dev/null" +--FILE-- + +--INI-- +SMTP=non.existent.smtp.server +--FILE-- + +===DONE=== +--EXPECTREGEX-- +.*===DONE=== -- 2.40.0