class TestMailer implements MailerInterface (View source)

Methods

public
__construct(TransportInterface $transport, EventDispatcherInterface $dispatcher)

No description

public
void
send(RawMessage $message, Envelope $envelope = null)

No description

protected
array
createData(Email $email)

No description

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

Search for an email that was sent.

public
void
clearEmails()

Clear the log of emails sent

Details

__construct(TransportInterface $transport, EventDispatcherInterface $dispatcher)

No description

Parameters

TransportInterface $transport
EventDispatcherInterface $dispatcher

void send(RawMessage $message, Envelope $envelope = null)

No description

Parameters

RawMessage $message
Envelope $envelope

Return Value

void

protected array createData(Email $email)

No description

Parameters

Email $email

Return Value

array

array|null findEmail(string $to, string|null $from = null, string|null $subject = null, string|null $content = null)

Search for an email that was sent.

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

Parameters

string $to
string|null $from
string|null $subject
string|null $content

Return Value

array|null

void clearEmails()

Clear the log of emails sent

Return Value

void