Installing PHP locally was (is) quite a pain. This gets multiplied if there are more developers with different environments (Windows, Mac, Linux…). As Docker has become the de-facto standard for containers and a common denominator among developers and also DevOps, there is an image for running PHPUnits tests in docker: https://hub.docker.com/r/phpunit/phpunit/
I “stored” my docker run command in a shell file:
![](http://78.47.21.97:9004/wp-content/uploads/2019/06/190626_DockerPhpUnit-1-1100x278.png)
The output may then look something like this:
![](http://78.47.21.97:9004/wp-content/uploads/2019/06/Bildschirmfoto-2019-06-26-um-23.32.31-1100x266.png)