Skip to content

Commit

Permalink
Test Travis mail config
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Feb 28, 2013
1 parent a24d25f commit 0680e1c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/phpmailerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -931,15 +931,15 @@ function test_SendmailSend()
*/
function test_MailSend()
{
if (function_exists('mail')) { //Mail is disabled in Travis-CI, so check before trying to use it
$this->Mail->Body = "Sending via mail()";
$this->BuildBody();
$subject = $this->Mail->Subject;

$this->Mail->Subject = $subject . ": mail()";
$this->Mail->IsMail();
$this->assertTrue($this->Mail->Send(), $this->Mail->ErrorInfo);
}
echo "sendmail path = '".ini_get('sendmail_path')."'";
ini_set('sendmail_path', '/bin/true');
$this->Mail->Body = "Sending via mail()";
$this->BuildBody();
$subject = $this->Mail->Subject;

$this->Mail->Subject = $subject . ": mail()";
$this->Mail->IsMail();
$this->assertTrue($this->Mail->Send(), $this->Mail->ErrorInfo);
}

/**
Expand Down

0 comments on commit 0680e1c

Please sign in to comment.