Recently, I have often come across Ruby and Ruby on Rails development. I am not going to talk about them. But after returning to PHP, something was sorely missed. One simple utility that turned out to be a great helper for any developer who uses tests. autotest runs tests for any change in the code base or tests. I tried to search in Google and on Gitkhab analog for PHP. All the solutions that I found were written either in Ruby, or in server-side JavaScript, or in bash (although I still found solutions in PHP later, which, however, I did not like for various reasons). I am a supporter of the opinion that development tools in some language should be written in it. There are many reasons for this, one of the most significant for me personally is the ability to easily and naturally make some changes and changes to the code of the utility itself (for example, when the utility developer does not respond to the bug report). My hands were itching and I tried to write my own version of autotest for PHP. The result can be seen on
Github .
The code, of course, is far from ideal. There is something else to do - for example, the contents of the console script should be moved to a separate class, existing classes need to be refactored (some do not follow SRP), perhaps some functionality should be added.
But still, I decided to make my decision to the public. On the one hand, I would be happy to advice (for example, how to write unit tests for a script with an infinite loop). On the other hand, the utility may already be useful to some developers.