patchlevel / event-sourcing-phpunit
Test your event-sourcing aggregates and subscribers with a clear given / when / then notation
Package info
github.com/patchlevel/event-sourcing-phpunit
pkg:composer/patchlevel/event-sourcing-phpunit
1.7.0
2026-04-02 11:52 UTC
Requires
- php: ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0
- patchlevel/event-sourcing: ^3.13.0
- phpunit/phpunit: ^10.5.45 || ^11.0.0 || ^12.0.0 || ^13.0.0
Requires (Dev)
- infection/infection: ^0.32.0
- patchlevel/coding-standard: ^1.3.0
- phpstan/phpstan: ^2.1.0
This package is auto-updated.
Last update: 2026-06-19 02:44:14 UTC
README
Event Sourcing PHPUnit
"Test your event-sourcing aggregates and subscribers with a clear given / when / then notation."
Features
- A given / when / then test case for aggregate behaviour
- A
whenthat also dispatches commands through your#[Handle]methods - Aggregate state assertions with closures
- A subscriber utility for setup, run and teardown
- and much more...
Installation
composer require --dev patchlevel/event-sourcing-phpunit
Documentation
Integration
Contributing
We are open to contributions as long as they are in line with our BC-Policy.
Also note that the composer.lock is always generated with the newest supported PHP version as this is the version our tools run in the CI.