PHP Class MockPHPMailer

Inheritance: extends PHPMailer
Afficher le fichier Open project: lucatume/wp-browser

Méthodes publiques

Свойство Type Description
$mock_sent

Méthodes publiques

Méthode Description
get_recipient ( string $address_type, integer $mock_sent_index, integer $recipient_index ) : boolean | object Get a recipient for a sent mock.
get_sent ( integer $index ) : object Decorator to return the information for a sent mock.
postSend ( ) Override postSend() so mail isn't actually sent.
preSend ( )

Method Details

get_recipient() public méthode

Get a recipient for a sent mock.
Since: 4.5.0
public get_recipient ( string $address_type, integer $mock_sent_index, integer $recipient_index ) : boolean | object
$address_type string The type of address for the email such as to, cc or bcc.
$mock_sent_index integer Optional. The sent_mock index we want to get the recipient for.
$recipient_index integer Optional. The recipient index in the array.
Résultat boolean | object Returns object on success, or false if any of the indices don't exist.

get_sent() public méthode

Decorator to return the information for a sent mock.
Since: 4.5.0
public get_sent ( integer $index ) : object
$index integer Optional. Array index of mock_sent value.
Résultat object

postSend() public méthode

Override postSend() so mail isn't actually sent.
public postSend ( )

preSend() public méthode

public preSend ( )

Property Details

$mock_sent public_oe property

public $mock_sent