macpaw/behat-messenger-context

Behat Context for testing Symfony Messenger component

Installs: 147 850

Dependents: 0

Suggesters: 0

Security: 0

Stars: 16

Watchers: 7

Forks: 2

Open Issues: 0

Type:symfony-bundle

v3.1.0 2025-04-24 11:01 UTC

README

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Version Build Status Coverage
master CI Coverage Status
develop CI Coverage Status

This repository provides custom Behat step definitions for working with Symfony Messenger transports. It includes functionality for checking messages in transports, validating them against expected JSON structures, and working with variable fields.

Installation

To install the MessengerContext and integrate it with your Behat setup, follow the instructions provided in the Installation Guide.

Available Features

Check a Specific Message in a Transport

You can verify if a specific message exists in a given transport.

Check All Messages in a Transport

Verify if all messages in a given transport match the expected JSON structure.

Check Messages with Regular Expressions

You can use regular expressions to validate messages that contain dynamic or variable data.

Check Every Messages with Mask Regular Expressions

You can use regular expression to validate all messages messages that contain dynamic or variable data.

Verify Message Count in a Transport

Ensure that a specific number of messages exist in a given transport.

Auto clean queue messages before scenario

Check details in documentation