TestMailer
class TestMailer implements MailerInterface (View source)
Methods
public
__construct(TransportInterface $transport, EventDispatcherInterface $dispatcher)
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.
Details
__construct(TransportInterface $transport, EventDispatcherInterface $dispatcher)
No description
void
send(RawMessage $message, Envelope $envelope = null)
No description
protected array
createData(Email $email)
No description
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.
void
clearEmails()
Clear the log of emails sent