--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