Skip to content
Permalink
Browse files

Added missing skipIf when no SMTP server is running.

  • Loading branch information...
Phally committed Jan 30, 2011
1 parent 6db8515 commit 9402f0ab79307946c0eabee63d0c19a46d6dbf60
Showing with 3 additions and 0 deletions.
  1. +3 −0 cake/tests/cases/libs/controller/components/email.test.php
@@ -437,6 +437,9 @@ function testSmtpEhlo() {
* @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';

0 comments on commit 9402f0a

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.