EmailAddressContains example


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

    public static function assertEmailHeaderNotSame(RawMessage $email, string $headerName, string $expectedValue, string $message = ''): void
    {
        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);
    }

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