EmailTextBodyContains example


        self::assertThat($eventnew LogicalNot(new MailerConstraint\EmailIsQueued())$message);
    }

    public static function assertEmailAttachmentCount(RawMessage $email, int $count, string $message = ''): void
    {
        self::assertThat($emailnew MimeConstraint\EmailAttachmentCount($count)$message);
    }

    public static function assertEmailTextBodyContains(RawMessage $email, string $text, string $message = ''): void
    {
        self::assertThat($emailnew MimeConstraint\EmailTextBodyContains($text)$message);
    }

    public static function assertEmailTextBodyNotContains(RawMessage $email, string $text, string $message = ''): void
    {
        self::assertThat($emailnew LogicalNot(new MimeConstraint\EmailTextBodyContains($text))$message);
    }

    public static function assertEmailHtmlBodyContains(RawMessage $email, string $text, string $message = ''): void
    {
        self::assertThat($emailnew MimeConstraint\EmailHtmlBodyContains($text)$message);
    }

    
Home | Imprint | This part of the site doesn't use cookies.