Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork386
Library that provides collection, processing, and rendering functionality for PHP code coverage information.
License
sebastianbergmann/php-code-coverage
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Provides collection, processing, and rendering functionality for PHP code coverage information.
You can add this library as a local, per-project dependency to your project usingComposer:
composer require phpunit/php-code-coverageIf you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:
composer require --dev phpunit/php-code-coverage<?phpdeclare(strict_types=1);useSebastianBergmann\CodeCoverage\Filter;useSebastianBergmann\CodeCoverage\Driver\Selector;useSebastianBergmann\CodeCoverage\CodeCoverage;useSebastianBergmann\CodeCoverage\Report\Html\FacadeasHtmlReport;$filter =newFilter;$filter->includeFiles( ['/path/to/file.php','/path/to/another_file.php', ]);$coverage =newCodeCoverage( (newSelector)->forLineCoverage($filter),$filter);$coverage->start('<name of test>');// ...$coverage->stop();(newHtmlReport)->process($coverage,'/tmp/code-coverage-report');
About
Library that provides collection, processing, and rendering functionality for PHP code coverage information.
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.