Original:


php ~/phpunit-5.7.22.phar --coverage-html=/tmp/coverage
With filter:


cat /tmp/auto_prepend.php

<?php
xdebug_set_filter(
    XDEBUG_FILTER_CODE_COVERAGE,
    XDEBUG_PATH_WHITELIST,
    [ '/home/derick/zeta-new-Document/src*/*' ]
);

php *-dauto_prepend_file=/tmp/auto_prepend.php* \
    ~/phpunit-5.7.22.phar --coverage-html=/tmp/coverage