PHP Class Jyxo\Mail\SenderTest

See also: Jyxo\Mail\Sender
Author: Jaroslav HanslĂ­k
Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: jyxo/php

Public Methods

Method Description
testAllTypes ( ) Tests all email types (with attachments, without, .
testCompleteEmail ( ) Tests a complete email message with all settings.
testSendErrors ( ) Tests possible sending errors.
testSendMail ( ) Tests sending using the mail() function.
testSendSmtp ( ) Tests sending using a SMTP server.
testUndisclosedRecipients ( ) Tests creating an email with only Bcc recipients.

Protected Methods

Method Description
setUp ( ) Prepares the testing environment.

Private Methods

Method Description
assertResult ( string $file, Result $result ) Compares the actual and expected result.
getEmail ( ) : Email Creates a basic email.

Method Details

setUp() protected method

Prepares the testing environment.
protected setUp ( )

testAllTypes() public method

..).
public testAllTypes ( )

testCompleteEmail() public method

Tests a complete email message with all settings.
public testCompleteEmail ( )

testSendErrors() public method

Tests possible sending errors.
public testSendErrors ( )

testSendMail() public method

Tests sending using the mail() function.
public testSendMail ( )

testSendSmtp() public method

Tests sending using a SMTP server.
public testSendSmtp ( )

testUndisclosedRecipients() public method

Tests creating an email with only Bcc recipients.