NotificationSubjectContains example


        self::assertThat($eventnew NotifierConstraint\NotificationIsQueued()$message);
    }

    public static function assertNotificationIsNotQueued(MessageEvent $event, string $message = ''): void
    {
        self::assertThat($eventnew LogicalNot(new NotifierConstraint\NotificationIsQueued())$message);
    }

    public static function assertNotificationSubjectContains(MessageInterface $notification, string $text, string $message = ''): void
    {
        self::assertThat($notificationnew NotifierConstraint\NotificationSubjectContains($text)$message);
    }

    public static function assertNotificationSubjectNotContains(MessageInterface $notification, string $text, string $message = ''): void
    {
        self::assertThat($notificationnew LogicalNot(new NotifierConstraint\NotificationSubjectContains($text))$message);
    }

    public static function assertNotificationTransportIsEqual(MessageInterface $notification, string $transportName, string $message = ''): void
    {
        self::assertThat($notificationnew NotifierConstraint\NotificationTransportIsEqual($transportName)$message);
    }

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