This project is abandoned, and replaced by php-coverage
A PHP framework to run XDebug Code Coverage and get reports of the result.
composer require guitarneck/xdebug-coverage --dev
$ coverage/coverage tests/Something.test.php [options]
--debug
--excludes=,--excludes,-x The paths to exclude. Separated by ','.
Ex: vendor/,tests/,inc/lib/
--format=,--format,-F The file format to be generated.
--help,-h This help page
--includes=,--includes,-i The paths to include. Separated by ','.
Ex: src/,inc/
--no-extra-filter
--output-path=,--output-path,-p The paths to output. Separated by ','.
Ex: {DIR},..,reports
- {DIR}: __DIR__ ('coverage/sources')
- .. : parent path
Default configuration can be sets in coverage/sources/XDebugCoverage.json
Grahpviz is open source graph visualization software.
$ dot -Tsvg coverage\\reports\\Hello.dot > Hello.svg