CodeExplorer EmailHtmlBodyContains example
self::
assertThat($email,
new MimeConstraint\
EmailTextBodyContains($text),
$message);
} public static function assertEmailTextBodyNotContains(RawMessage
$email, string
$text, string
$message = ''
): void
{ self::
assertThat($email,
new LogicalNot(new MimeConstraint\
EmailTextBodyContains($text)),
$message);
} public static function assertEmailHtmlBodyContains(RawMessage
$email, string
$text, string
$message = ''
): void
{ self::
assertThat($email,
new MimeConstraint\
EmailHtmlBodyContains($text),
$message);
} public static function assertEmailHtmlBodyNotContains(RawMessage
$email, string
$text, string
$message = ''
): void
{ self::
assertThat($email,
new LogicalNot(new MimeConstraint\
EmailHtmlBodyContains($text)),
$message);
} public static function assertEmailHasHeader(RawMessage
$email, string
$headerName, string
$message = ''
): void
{ self::
assertThat($email,
new MimeConstraint\
EmailHasHeader($headerName),
$message);
}