When writing PHPUnit tests, some of them turn out to take quite long to execute. To check certain functions, I need to check a lot of different combinations of variables, and this leads to a very long test.
Is is possible to tell PHPUnit how far the test has progressed so it can output the intermediate progress for the test to the command line? Now it is just waiting there for 2 minutes without any indication of progress.
I am just looking for an extra progress indicator that would be part of PHPUnit, and not just a custom echo
, which I can write myself just fine.
I am sorry, but this is not possible.
However, if you need to invoke the same piece of code with different data, for instance call the same method with different arguments, then you should have a look at data providers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With