testo / messenger
Output capturing and channel messaging plugin for the Testo testing framework.
Fund package maintenance!
Requires
- php: >=8.2
- internal/destroy: ^1.0
- psr/event-dispatcher: ^1.0
- psr/log: ^2.0 || ^3.0
- testo/testo: *
README
Output capturing & channel messaging plugin
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