I don't want to enable xdebug for my normal PHPUnit test but only for the coverage report. Therefor I made a shortcut.
In my composer.json file I made this script:
{
"scripts": {
"coverage": "php -d zend_extension=xdebug.so ./vendor/bin/phpunit --prepend build/xdebug-filter.php --coverage-html build/coverage-report --coverage-text"
}
}
For more information see stackoverflow.