PHP Class Jyxo\Mail\SenderTest

See also: Jyxo\Mail\Sender
Author: Jaroslav Hanslík
Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: jyxo/php

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
setUp ( ) Prepares the testing environment.

Private Methods

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

Method Details

setUp() protected méthode

Prepares the testing environment.
protected setUp ( )

testAllTypes() public méthode

..).
public testAllTypes ( )

testCompleteEmail() public méthode

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

testSendErrors() public méthode

Tests possible sending errors.
public testSendErrors ( )

testSendMail() public méthode

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

testSendSmtp() public méthode

Tests sending using a SMTP server.
public testSendSmtp ( )

testUndisclosedRecipients() public méthode

Tests creating an email with only Bcc recipients.