EmailSubjectContains example


        self::assertThat($emailnew LogicalNot(new MimeConstraint\EmailHeaderSame($headerName$expectedValue))$message);
    }

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

    public static function assertEmailSubjectContains(RawMessage $email, string $expectedValue, string $message = ''): void
    {
        self::assertThat($emailnew MimeConstraint\EmailSubjectContains($expectedValue)$message);
    }

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

    /** * @return MessageEvent[] */
    public static function getMailerEvents(string $transport = null): array
    {
Home | Imprint | This part of the site doesn't use cookies.