I am looking to start writing tests for my sprinkle’s controllers, and I need some advice to set up an optimal workflow. I would like to use PHPUnit 7+ (I am on PHP 7.1 currently, moving to 7.2 soon).
I see that UF4 already uses an older version of phpunit 5.x, though I’ve not used/executed any of UF’s tests.
Where are UF’s tests and how do I execute them?
Can I use my own PHPUnit setup for my own sprinkle, or do I have to update UF’s core phpunit requirement?
Is there a recommended workflow to auto-execute the tests (locally) after an update? Either manually executing a script, or by having an automated script that tests on file changes (my favourite method).
Any other tips on this appreciated, thanks!