X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fphpmailer%2Ftest%2Fphpmailer_test.php;h=736277aacd704ed1db02af31bfbc14f03a5f71ad;hb=678f314de00d41c3990fc49742545cd2e78dd3cc;hp=63743ea8c22afbb31ae5fa6712ed995aafbe4cb0;hpb=33cc131a3e5017842d2038f7e16df258b6845a08;p=mailer.git
diff --git a/inc/phpmailer/test/phpmailer_test.php b/inc/phpmailer/test/phpmailer_test.php
index 63743ea8c2..736277aacd 100644
--- a/inc/phpmailer/test/phpmailer_test.php
+++ b/inc/phpmailer/test/phpmailer_test.php
@@ -20,7 +20,7 @@ class phpmailerTest extends TestCase
* @private
* @type object
*/
- var $Mail = false;
+ var $Mail = FALSE;
/**
* Holds the SMTP mail host.
@@ -73,7 +73,7 @@ class phpmailerTest extends TestCase
$this->Mail->Host = $global_vars["mail_host"];
$this->Mail->Port = 25;
$this->Mail->Helo = "localhost.localdomain";
- $this->Mail->SMTPAuth = false;
+ $this->Mail->SMTPAuth = FALSE;
$this->Mail->Username = "";
$this->Mail->Password = "";
$this->Mail->PluginDir = $INCLUDE_DIR;
@@ -199,7 +199,7 @@ class phpmailerTest extends TestCase
$this->AddChange("Encoding", $this->Mail->Encoding);
if($this->Mail->CharSet != "iso-8859-1")
$this->AddChange("CharSet", $this->Mail->CharSet);
- if($this->Mail->Sender != '')
+ if($this->Mail->Sender != "")
$this->AddChange("Sender", $this->Mail->Sender);
if($this->Mail->WordWrap != 0)
$this->AddChange("WordWrap", $this->Mail->WordWrap);
@@ -351,7 +351,7 @@ class phpmailerTest extends TestCase
*/
function test_Html() {
- $this->Mail->IsHTML(true);
+ $this->Mail->IsHTML(TRUE);
$this->Mail->Subject .= ": HTML only";
$this->Mail->Body = "This is a test message written in HTML. " .
@@ -370,7 +370,7 @@ class phpmailerTest extends TestCase
$this->Mail->Body = "This is the HTML part of the email.";
$this->Mail->Subject .= ": HTML + Attachment";
- $this->Mail->IsHTML(true);
+ $this->Mail->IsHTML(TRUE);
if(!$this->Mail->AddAttachment("phpmailer_test.php", "test_attach.txt"))
{
@@ -390,7 +390,7 @@ class phpmailerTest extends TestCase
$this->Mail->Body = "Embedded Image:
" .
"Here is an image!";
$this->Mail->Subject .= ": Embedded Image";
- $this->Mail->IsHTML(true);
+ $this->Mail->IsHTML(TRUE);
if(!$this->Mail->AddEmbeddedImage("test.png", "my-attach", "test.png",
"base64", "image/png"))
@@ -411,7 +411,7 @@ class phpmailerTest extends TestCase
$this->Mail->Body = "Embedded Image:
" .
"Here is an image!";
$this->Mail->Subject .= ": Embedded Image + Attachment";
- $this->Mail->IsHTML(true);
+ $this->Mail->IsHTML(TRUE);
if(!$this->Mail->AddEmbeddedImage("test.png", "my-attach", "test.png",
"base64", "image/png"))
@@ -455,7 +455,7 @@ class phpmailerTest extends TestCase
$this->Mail->Body = "This is the HTML part of the email.";
$this->Mail->AltBody = "This is the text part of the email.";
$this->Mail->Subject .= ": AltBody + Attachment";
- $this->Mail->IsHTML(true);
+ $this->Mail->IsHTML(TRUE);
if(!$this->Mail->AddAttachment("phpmailer_test.php", "test_attach.txt"))
{
@@ -488,7 +488,7 @@ class phpmailerTest extends TestCase
$this->BuildBody();
$subject = $this->Mail->Subject;
- $this->Mail->SMTPKeepAlive = true;
+ $this->Mail->SMTPKeepAlive = TRUE;
$this->Mail->Subject = $subject . ": SMTP keep-alive 1";
$this->assert($this->Mail->Send(), $this->Mail->ErrorInfo);
@@ -513,8 +513,8 @@ class phpmailerTest extends TestCase
$this->Mail->Subject .= ": This should be sent";
$this->BuildBody();
$this->Mail->ClearAllRecipients(); // no addresses should cause an error
- $this->assert($this->Mail->IsError() == false, "Error found");
- $this->assert($this->Mail->Send() == false, "Send succeeded");
+ $this->assert($this->Mail->IsError() == FALSE, "Error found");
+ $this->assert($this->Mail->Send() == FALSE, "Send succeeded");
$this->assert($this->Mail->IsError(), "No error found");
$this->assertEquals('You must provide at least one ' .
'recipient email address.', $this->Mail->ErrorInfo);