CodeExplorer EmailHasHeader example
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);
} public static function assertEmailNotHasHeader(RawMessage
$email, string
$headerName, string
$message = ''
): void
{ self::
assertThat($email,
new LogicalNot(new MimeConstraint\
EmailHasHeader($headerName)),
$message);
} public static function assertEmailHeaderSame(RawMessage
$email, string
$headerName, string
$expectedValue, string
$message = ''
): void
{ self::
assertThat($email,
new MimeConstraint\
EmailHeaderSame($headerName,
$expectedValue),
$message);
}