1--TEST-- 2Test mail() function : variation invalid program for sendmail 3--INI-- 4sendmail_path=rubbish 2>/dev/null 5--SKIPIF-- 6<?php 7if(substr(PHP_OS, 0, 3) == "WIN") 8 die("skip Won't run on Windows"); 9?> 10--FILE-- 11<?php 12echo "*** Testing mail() : variation ***\n"; 13 14// Initialise all required variables 15$to = 'user@example.com'; 16$subject = 'Test Subject'; 17$message = 'A Message'; 18var_dump( mail($to, $subject, $message) ); 19?> 20--EXPECT-- 21*** Testing mail() : variation *** 22bool(false) 23