Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added missing skipIf when no SMTP server is running.

  • Loading branch information...
commit 9402f0ab79307946c0eabee63d0c19a46d6dbf60 1 parent 6db8515
@Phally Phally authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  cake/tests/cases/libs/controller/components/email.test.php
View
3  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';
Please sign in to comment.
Something went wrong with that request. Please try again.