Skip to content

Commit

Permalink
Use debug level constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Nov 15, 2018
1 parent 8e653bb commit 77c26cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/PHPMailerTest.php
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@

use PHPMailer\PHPMailer\OAuth;
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\POP3;
use PHPUnit\Framework\TestCase;

@@ -74,7 +75,7 @@ protected function setUp()
include $this->INCLUDE_DIR . '/test/testbootstrap.php'; //Overrides go in here
}
$this->Mail = new PHPMailer();
$this->Mail->SMTPDebug = 3; //Full debug output
$this->Mail->SMTPDebug = SMTP::DEBUG_CONNECTION; //Full debug output
$this->Mail->Debugoutput = ['PHPMailer\Test\DebugLogTestListener', 'debugLog'];
$this->Mail->Priority = 3;
$this->Mail->Encoding = '8bit';
@@ -2522,7 +2523,7 @@ public function testPopBeforeSmtpBad()
*/
public function testSmtpConnect()
{
$this->Mail->SMTPDebug = 4; //Show connection-level errors
$this->Mail->SMTPDebug = SMTP::DEBUG_LOWLEVEL; //Show connection-level errors
$this->assertTrue($this->Mail->smtpConnect(), 'SMTP single connect failed');
$this->Mail->smtpClose();

0 comments on commit 77c26cd

Please sign in to comment.