rva-vzw/krakboem-phpunit

Helper classes to create PHPUnit tests for your krakboem-based project

Installs: 58

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

pkg:composer/rva-vzw/krakboem-phpunit

v0.1 2025-09-23 21:22 UTC

This package is not auto-updated.

Last update: 2025-11-06 18:55:51 UTC


README

Helper classes to create PHPUnit tests for your project that uses rva-vzw/krakboem.

Install it like this:

composer require --dev rva-vzw/krakboem-phpunit

Decider vs Aggregate

Krakboem is my library for event sourcing. It supports (or at least: it should support) two ways for doing event sourcing. You can use traditional event sourced aggregate root repositories. Or you can use the more experimental deciders, which may be interesting if you like functional programming.

For now I prefer to use the aggregate root repositories, because I think this matches better with clean architecture. But I sometimes change my mind.

If you use krakboem-phpunit, you can test your code using a similar api. Which is very cool.

Example tests are in RvaVzw\KrakboemPhpunit\Test\Aggregate\ExampleAggregateTest and RvaVzw\KrakboemPhpunit\Test\Decider\ExampleDeciderTest