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
Requires
- php: ^8.2
- behat/behat: ^3.0
- macpaw/similar-arrays: ^1.0
- symfony/dependency-injection: ^6.3 || ^7.0
- symfony/http-kernel: ^6.3 || ^7.0
- symfony/messenger: ^6.3 || ^7.0
- symfony/serializer: ^6.3 || ^7.0
Requires (Dev)
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^9.3
- slevomat/coding-standard: ^7.0
- squizlabs/php_codesniffer: ^3.6
Suggests
- zenstruck/messenger-test: To use Zentruck messages clearing
This package is auto-updated.
Last update: 2025-04-24 11:02:28 UTC
README
Version | Build Status | Coverage |
---|---|---|
master |
||
develop |
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.
- Documentation: Check Transport Message
Check All Messages in a Transport
Verify if all messages in a given transport match the expected JSON structure.
- Documentation: Check All Transport Messages
Check Messages with Regular Expressions
You can use regular expressions to validate messages that contain dynamic or variable data.
- Documentation for specific message: Check Transport Message with Regexp
- Documentation for all messages: Check All Transport Messages with Regexp
Check Every Messages with Mask Regular Expressions
You can use regular expression to validate all messages messages that contain dynamic or variable data.
- Documentation for all specific message: Check Transport Messages with Regexp
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
- Documentation: Count Messages in Transport