PHP Class MockPHPMailer

Inheritance: extends PHPMailer
Mostrar archivo Open project: lucatume/wp-browser

Public Properties

Property Type Description
$mock_sent

Public Methods

Method 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 method

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.
return boolean | object Returns object on success, or false if any of the indices don't exist.

get_sent() public method

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.
return object

postSend() public method

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

preSend() public method

public preSend ( )

Property Details

$mock_sent public_oe property

public $mock_sent