Skip to content

Commit

Permalink
Added missing skipIf when no SMTP server is running.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phally committed Jan 30, 2011
1 parent 6db8515 commit 9402f0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cake/tests/cases/libs/controller/components/email.test.php
Expand Up @@ -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';
Expand Down

0 comments on commit 9402f0a

Please sign in to comment.