testo/messenger
Output capturing and channel messaging plugin for the Testo testing framework.
Maintainers
Fund package maintenance!
Requires
- php: >=8.2
- internal/destroy: ^1.0
- psr/event-dispatcher: ^1.0
- psr/log: ^2.0 || ^3.0
- testo/testo: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
BSD-3-Clause 5e1414bb4b1d24a57ac9a24661a55afa12c5d73e
README
Output capturing & channel messaging plugin
👁 Documentation
👁 Support on Boosty
Important
🪞 This is a read-only mirror.
Active development of the Testo project lives in php-testo/testo under plugin/messenger/. This repository is automatically synchronized from there on every release.
File issues and pull requests in the main monorepo, not here.
About
Captures everything a test writes to the output buffer and routes it — together with anything other producers emit — through a channel-based messaging hub.
Each message carries a channel (e.g. stdout, sql-log), a severity level and its content. Messages are recorded per test (attached to the test's result), announced as events in real time, and can be produced from test code, middleware, or other plugins. The hub also exposes a PSR-3 logger per channel, so existing logging code feeds the same stream.
Output renderers (terminal, TeamCity) consume these messages to display per-test output, grouped and highlighted by channel.
Install
composer require --dev testo/messenger
👁 PHP
👁 Latest Version on Packagist
👁 License
👁 Total Downloads
