MailerAssertionsTrait
Table of Contents
-
assertEmailAddressContains()
: void
-
assertEmailAttachmentCount()
: void
-
assertEmailCount()
: void
-
assertEmailHasHeader()
: void
-
assertEmailHeaderNotSame()
: void
-
assertEmailHeaderSame()
: void
-
assertEmailHtmlBodyContains()
: void
-
assertEmailHtmlBodyNotContains()
: void
-
assertEmailIsNotQueued()
: void
-
assertEmailIsQueued()
: void
-
assertEmailNotHasHeader()
: void
-
assertEmailTextBodyContains()
: void
-
assertEmailTextBodyNotContains()
: void
-
assertQueuedEmailCount()
: void
-
getMailerEvent()
: MessageEvent|null
-
getMailerEvents()
: array<string|int, MessageEvent>
-
getMailerMessage()
: RawMessage|null
-
getMailerMessages()
: array<string|int, RawMessage>
-
getMessageMailerEvents()
: MessageEvents
assertEmailAddressContains()
public
static assertEmailAddressContains(RawMessage $email, string $headerName, string $expectedValue[, string $message = '' ]) : void
Parameters
-
$email
: RawMessage
-
-
$headerName
: string
-
-
$expectedValue
: string
-
-
$message
: string
= ''
-
Return values
void
—
assertEmailAttachmentCount()
public
static assertEmailAttachmentCount(RawMessage $email, int $count[, string $message = '' ]) : void
Parameters
-
$email
: RawMessage
-
-
$count
: int
-
-
$message
: string
= ''
-
Return values
void
—
assertEmailCount()
public
static assertEmailCount(int $count[, string|null $transport = null ][, string $message = '' ]) : void
Parameters
-
$count
: int
-
-
$transport
: string|null
= null
-
-
$message
: string
= ''
-
Return values
void
—
public
static assertEmailHasHeader(RawMessage $email, string $headerName[, string $message = '' ]) : void
Parameters
-
$email
: RawMessage
-
-
$headerName
: string
-
-
$message
: string
= ''
-
Return values
void
—
public
static assertEmailHeaderNotSame(RawMessage $email, string $headerName, string $expectedValue[, string $message = '' ]) : void
Parameters
-
$email
: RawMessage
-
-
$headerName
: string
-
-
$expectedValue
: string
-
-
$message
: string
= ''
-
Return values
void
—
public
static assertEmailHeaderSame(RawMessage $email, string $headerName, string $expectedValue[, string $message = '' ]) : void
Parameters
-
$email
: RawMessage
-
-
$headerName
: string
-
-
$expectedValue
: string
-
-
$message
: string
= ''
-
Return values
void
—
assertEmailHtmlBodyContains()
public
static assertEmailHtmlBodyContains(RawMessage $email, string $text[, string $message = '' ]) : void
Parameters
-
$email
: RawMessage
-
-
$text
: string
-
-
$message
: string
= ''
-
Return values
void
—
assertEmailHtmlBodyNotContains()
public
static assertEmailHtmlBodyNotContains(RawMessage $email, string $text[, string $message = '' ]) : void
Parameters
-
$email
: RawMessage
-
-
$text
: string
-
-
$message
: string
= ''
-
Return values
void
—
assertEmailIsNotQueued()
public
static assertEmailIsNotQueued(MessageEvent $event[, string $message = '' ]) : void
Parameters
-
$event
: MessageEvent
-
-
$message
: string
= ''
-
Return values
void
—
assertEmailIsQueued()
public
static assertEmailIsQueued(MessageEvent $event[, string $message = '' ]) : void
Parameters
-
$event
: MessageEvent
-
-
$message
: string
= ''
-
Return values
void
—
public
static assertEmailNotHasHeader(RawMessage $email, string $headerName[, string $message = '' ]) : void
Parameters
-
$email
: RawMessage
-
-
$headerName
: string
-
-
$message
: string
= ''
-
Return values
void
—
assertEmailTextBodyContains()
public
static assertEmailTextBodyContains(RawMessage $email, string $text[, string $message = '' ]) : void
Parameters
-
$email
: RawMessage
-
-
$text
: string
-
-
$message
: string
= ''
-
Return values
void
—
assertEmailTextBodyNotContains()
public
static assertEmailTextBodyNotContains(RawMessage $email, string $text[, string $message = '' ]) : void
Parameters
-
$email
: RawMessage
-
-
$text
: string
-
-
$message
: string
= ''
-
Return values
void
—
assertQueuedEmailCount()
public
static assertQueuedEmailCount(int $count[, string|null $transport = null ][, string $message = '' ]) : void
Parameters
-
$count
: int
-
-
$transport
: string|null
= null
-
-
$message
: string
= ''
-
Return values
void
—
getMailerEvent()
public
static getMailerEvent(int $index[, string|null $transport = null ]) : MessageEvent|null
Parameters
-
$index
: int
-
-
$transport
: string|null
= null
-
Return values
MessageEvent|null
—
getMailerEvents()
public
static getMailerEvents([string|null $transport = null ]) : array<string|int, MessageEvent>
Parameters
-
$transport
: string|null
= null
-
Return values
array<string|int, MessageEvent>
—
getMailerMessage()
public
static getMailerMessage(int $index[, string|null $transport = null ]) : RawMessage|null
Parameters
-
$index
: int
-
-
$transport
: string|null
= null
-
Return values
RawMessage|null
—
getMailerMessages()
public
static getMailerMessages([string|null $transport = null ]) : array<string|int, RawMessage>
Parameters
-
$transport
: string|null
= null
-
Return values
array<string|int, RawMessage>
—
getMessageMailerEvents()
private
static getMessageMailerEvents() : MessageEvents
Return values
MessageEvents
—