Test your PHP code in multiple versions using Docker.
- Free software: Apache 2.0 license
- Supports PHPUnit tests on PHP 5.4, 5.5, 5.6 and HHVM.
- Docker Toolbox: https://docs.docker.com/toolbox/overview/
- PHP Composer: https://getcomposer.org/
Sample app in the example
folder.
cd example
# Run the unit tests in different versions:
composer update
docker-compose run php54 phpunit
docker-compose run php55 phpunit
docker-compose run php56 phpunit
docker-compose run hhvm phpunit
Also, see example/docker-compose.yml
.