PHPSpec a CommandHandler with DispatchableTrait
Closed this issue · 1 comments
nrwiersma commented
Hi,
It kinda seems like when specing a command handler that uses DispatchableTrait it becomes untestable with PHPSpec. Is this right, or have I missed something?
nrwiersma commented
So probably a bit of a dull moment here, I ended up not using the trait, and injecting the EventDispatcher.