EmailHtmlBodyContains example


        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);
    }

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

    public static function assertEmailHasHeader(RawMessage $email, string $headerName, string $message = ''): void
    {
        self::assertThat($emailnew MimeConstraint\EmailHasHeader($headerName)$message);
    }

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