Dockerfile for https://github.com/sebastianbergmann/phpcov
use version=6.0.1
for phpunit 8
use version=8.0.0
for phpunit 9
version=6.0.1 make image.build
docker run --rm -w /app/bpg/ -v $(pwd):/app/bpg/ fearofcode/phpcov:6.0.1 merge --xml .phpunit.coverage.xml .phpunit.coverage.php/
You must use same mount structure as it was while running phpunit. It releases on absolute path of file.