PHPUnit is a programmer-oriented testing framework for PHP. Includes MySQLi and Xdebug.
245
Orignally from djbingham/phpunit-mysqli, this a simple image to work with PHP unit testing.
Quick usage (in the same directory of phpunit.xml):
docker run --rm -v $(pwd):/app phpunit
Don't forget to declare the correct Docker network in case your code needs to interact with other containers:
docker run --rm -v $(pwd):/app --network="testing" phpunit
You can also set PHPUnit options:
docker run --rm -v $(pwd):/app phpunit --verbose --debug --configuration tests/phpunit.xml
Content type
Image
Digest
Size
170.5 MB
Last updated
over 9 years ago
docker pull vegbrasil/phpunit