It took some doing, but I now have the testing approach for my event-sourcing framework pretty much the way I want it. #php #testing

A couple more examples here: https://gitlab.com/rva-vzw/krakboem/-/blob/develop/tests/Decider/ExampleDeciderTest.php

tests/Decider/ExampleDeciderTest.php · develop · rva-vzw / krakboem · GitLab

PHP interfaces and some base classes for CQRS and event sourcing.

GitLab
@vohanj the API is nice - we got the same. But the implementation differs.
@danielbadura I just took a quick look at patchlevel/event-sourcing, and it really looks nice. And it is much more mature than the thing I've made.
My library is not production ready; I am just fiddling around to learn, end to find out what works for me.
I probably should consider using your library for my whist score app. (That is, when I have some more free time at some point in the future 😅)
@vohanj thank you! We did original the same: we built it to better learn the internals and because we had some ideas to make event sourcing more developer friendly. Our goal is to make event sourcing as easy as possible.