From: Martin Jansen Date: Sun, 6 Jan 2013 07:59:10 +0000 (+0100) Subject: Add unit test for mail.log ini setting. X-Git-Tag: php-5.5.0alpha3~10^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=371372714dcac655f53a53ef4d45ad02916b4f4a;p=php Add unit test for mail.log ini setting. --- diff --git a/ext/standard/tests/mail/mail_log.phpt b/ext/standard/tests/mail/mail_log.phpt new file mode 100644 index 0000000000..86346ec307 --- /dev/null +++ b/ext/standard/tests/mail/mail_log.phpt @@ -0,0 +1,48 @@ +--TEST-- +Test mail() function : mail.log ini setting +--INI-- +sendmail_path=tee /tmp/mail.out >/dev/null +mail.log = /tmp/mail.log +--SKIPIF-- + +--FILE-- + 0); +clearstatcache(); + +echo file_get_contents($logfile); +?> +Done +--CLEAN-- + +--EXPECTF-- +bool(true) +bool(true) +bool(true) +[%d-%s-%d %d:%d:%d UTC] mail() on [%smail_log.php:%d]: To: test@example.com -- Headers: X-Test: 1 +Done