CodeExplorer EmailAttachmentCount example
self::
assertThat($event,
new MailerConstraint\
EmailIsQueued(),
$message);
} public static function assertEmailIsNotQueued(MessageEvent
$event, string
$message = ''
): void
{ self::
assertThat($event,
new LogicalNot(new MailerConstraint\
EmailIsQueued()),
$message);
} public static function assertEmailAttachmentCount(RawMessage
$email, int
$count, string
$message = ''
): void
{ self::
assertThat($email,
new MimeConstraint\
EmailAttachmentCount($count),
$message);
} public static function assertEmailTextBodyContains(RawMessage
$email, string
$text, string
$message = ''
): void
{ 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);
}