Instead of looping continuously, it would be more efficient to run the tests only when file modification is detected.<p>Something like <a href="https://github.com/Maher4Ever/guard-phpunit" rel="nofollow">https://github.com/Maher4Ever/guard-phpunit</a>