class TestMailer extends TestMailer (View source)

Same principle as core TestMailer class, but saves emails in TestSessionEnvironment to share the state between PHP calls (CLI vs. browser).

Properties

protected TestSessionEnvironment $testSessionEnvironment

Methods

public
__construct()

No description

public
clearEmails()

Clear the log of emails sent

public
findEmail($to = null, $from = null, $subject = null, $content = null)

No description

public
array
findEmails($to = null, $from = null, $subject = null, $content = null)

Search for all emails.

protected
saveEmail($data)

No description

Details

__construct()

No description

clearEmails()

Clear the log of emails sent

findEmail($to = null, $from = null, $subject = null, $content = null)

No description

Parameters

$to
$from
$subject
$content

array findEmails($to = null, $from = null, $subject = null, $content = null)

Search for all emails.

All of the parameters can either be a string, or, if they start with "/", a PREG-compatible regular expression.

Parameters

$to
$from
$subject
$content

Return Value

array

Contains the keys: 'type', 'to', 'from', 'subject', 'content', 'plainContent', 'attachedFiles', 'customHeaders', 'htmlContent', 'inlineImages'

protected saveEmail($data)

No description

Parameters

$data