]> git.mxchange.org Git - mailer.git/blobdiff - inc/phpmailer/test/phpmailer_test.php
Code style changed, ext-user continued:
[mailer.git] / inc / phpmailer / test / phpmailer_test.php
index ffbe4bd42982c853d728a979f09b70b9aa6bc322..736277aacd704ed1db02af31bfbc14f03a5f71ad 100644 (file)
@@ -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;
@@ -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 <b>test message</b> written in HTML. </br>" .
@@ -370,7 +370,7 @@ class phpmailerTest extends TestCase
 
         $this->Mail->Body = "This is the <b>HTML</b> 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: <img alt=\"phpmailer\" src=\"cid:my-attach\">" .
                      "Here is an image!</a>";
         $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: <img alt=\"phpmailer\" src=\"cid:my-attach\">" .
                      "Here is an image!</a>";
         $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 <b>HTML</b> 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);