## Class phpmailerTest

Description

Performs authentication tests

Located in /shared/phpmailer/test/phpmailer_test.php (line 20)

    Assert
       |
       --TestCase
          |
          --phpmailerTest

Variable Summary
mixed $ChangeLog
mixed $Host
mixed $Mail
mixed $NoteLog
Method Summary
phpmailerTest phpmailerTest (mixed $name)
void AddChange (mixed $sName, mixed $sNewValue)
void AddNote (mixed $sValue)
void BuildBody ()
void CheckChanges ()
void SetAddress (mixed $sAddress, [mixed $sName = ""], [mixed $sType = "to"])
void setUp ()
void tearDown ()
void test_AltBody ()
void test_AltBody_Attachment ()
void test_DenialOfServiceAttack ()
void test_Embedded_Image ()
void test_Error ()
void test_Html ()
void test_HTML_Attachment ()
void test_Low_Priority ()
void test_MultipleSend ()
void test_Multiple_Plain_FileAttachment ()
void test_Multi_Embedded_Image ()
void test_Plain_StringAttachment ()
void test_Quoted_Printable ()
void test_SmtpKeepAlive ()
void test_WordWrap ()
Variables
mixed $ChangeLog = array() (line 38)

Holds the change log.

- private:

mixed $Host = "" (line 32)

Holds the SMTP mail host.

- public:

mixed $Mail = false (line 26)

Holds the default phpmailer instance.

- private:

mixed $NoteLog = array() (line 44)

Holds the note log.

- private:

#### Inherited Variables

Inherited from TestCase

> TestCase::$fExceptions
> TestCase::$fName
> TestCase::$fResult

Methods
Constructor phpmailerTest (line 49)

Class constuctor.

phpmailerTest phpmailerTest (mixed $name)
AddChange (line 221)

Adds a change entry.

- private:

void AddChange (mixed $sName, mixed $sNewValue)
AddNote (line 232)

Adds a simple note to the message.

- public:

void AddNote (mixed $sValue)
BuildBody (line 113)

Build the body of the message in the appropriate format.

- private:

void BuildBody ()
CheckChanges (line 195)

Check which default settings have been changed for the report.

- private:

void CheckChanges ()
SetAddress (line 241)

Adds all of the addresses

- public:

void SetAddress (mixed $sAddress, [mixed $sName = ""], [mixed $sType = "to"])
setUp (line 57)

Run before each test is started.

void setUp ()

Redefinition of:

TestCase::setUp()

tearDown (line 100)

Run after each test is completed.

void tearDown ()

Redefinition of:

TestCase::tearDown()

test_AltBody (line 436)

Simple multipart/alternative test.

void test_AltBody ()
test_AltBody_Attachment (line 453)

Simple HTML and attachment test

void test_AltBody_Attachment ()
test_DenialOfServiceAttack (line 504)

Tests this denial of service attack:

http://www.cybsec.com/vuln/PHPMailer-DOS.pdf

void test_DenialOfServiceAttack ()
test_Embedded_Image (line 388)

An embedded attachment test.

void test_Embedded_Image ()
test_Error (line 512)
void test_Error ()
test_Html (line 352)

Try a plain message.

void test_Html ()
test_HTML_Attachment (line 369)

Simple HTML and attachment test

void test_HTML_Attachment ()
test_Low_Priority (line 282)

Try a plain message.

void test_Low_Priority ()
test_MultipleSend (line 474)
void test_MultipleSend ()
test_Multiple_Plain_FileAttachment (line 297)

Simple plain file attachment test.

void test_Multiple_Plain_FileAttachment ()
test_Multi_Embedded_Image (line 409)

An embedded attachment test.

void test_Multi_Embedded_Image ()
test_Plain_StringAttachment (line 321)

Simple plain string attachment test.

void test_Plain_StringAttachment ()
test_Quoted_Printable (line 339)

Plain quoted-printable message.

void test_Quoted_Printable ()
test_SmtpKeepAlive (line 486)
void test_SmtpKeepAlive ()
test_WordWrap (line 263)

Try a plain message.

void test_WordWrap ()

#### Inherited Methods

Inherited From TestCase

> TestCase::TestCase()
> TestCase::countTestCases()
> TestCase::error()
> TestCase::fail()
> TestCase::failed()
> TestCase::getExceptions()
> TestCase::name()
> TestCase::run()
> TestCase::runBare()
> TestCase::runTest()
> TestCase::setUp()
> TestCase::tearDown()
> TestCase::_createResult()

Inherited From Assert

> Assert::assert()
> Assert::assertEquals()
> Assert::assertRegexp()
> Assert::failNotEquals()

Documentation generated on Fri, 24 Nov 2006 21:16:11 +0100 by phpDocumentor 1.3.0RC3