macpaw / behat-messenger-context
Behat Context for testing Symfony Messenger component
Installs: 115 053
Dependents: 0
Suggesters: 0
Security: 0
Stars: 15
Watchers: 8
Forks: 2
Open Issues: 1
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
This package is auto-updated.
Last update: 2024-11-18 15:05:28 UTC
README
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
Verify Message Count in a Transport
Ensure that a specific number of messages exist in a given transport.
- Documentation: Count Messages in Transport