I’ve cloned the latest iteration of Devilbox and have my project up and running… When I run unit tests, via PHPUnit, however, its running PHPUnit v7.x. I can update to the latest by doing this:
$ wget https://phar.phpunit.de/phpunit.phar
$ chmod +x phpunit.phar
$ sudo mv phpunit.phar /usr/local/bin/phpunit
Of course that does not persist if I rm -f
my containers.
My question, is there a permanent way to get updated PHPUnit to persist? Or even a script to be run to keep it up to date on docker-compose up
?