Added missing skipIf when no SMTP server is running.

This commit is contained in:
Phally 2011-01-31 00:06:11 +01:00
parent 6db8515e60
commit 9402f0ab79

View file

@ -437,6 +437,9 @@ TEMPDOC;
* @return void
*/
function testSmtpSendMultipleTo() {
if ($this->skipIf(!@fsockopen('localhost', 25), '%s No SMTP server running on localhost')) {
return;
}
$this->Controller->EmailTest->reset();
$this->Controller->EmailTest->to = array('postmaster@localhost', 'root@localhost');
$this->Controller->EmailTest->from = 'noreply@example.com';