EmailIsQueued example


        self::assertThat(self::getMessageMailerEvents()new MailerConstraint\EmailCount($count$transport)$message);
    }

    public static function assertQueuedEmailCount(int $count, string $transport = null, string $message = ''): void
    {
        self::assertThat(self::getMessageMailerEvents()new MailerConstraint\EmailCount($count$transport, true)$message);
    }

    public static function assertEmailIsQueued(MessageEvent $event, string $message = ''): void
    {
        self::assertThat($eventnew MailerConstraint\EmailIsQueued()$message);
    }

    public static function assertEmailIsNotQueued(MessageEvent $event, string $message = ''): void
    {
        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);
    }

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