Library that provides collection, processing, and rendering functionality for PHP code coverage information.
Library that provides collection, processing, and rendering functionality for PHP code coverage information.
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 using Composer:
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…<?php declare(strict_types=1);
use SebastianBergmann\CodeCoverage\Report\Facade as ReportFacade;
use SebastianBergmann\CodeCoverage\Serialization\Unserializer;
$data = (new Unserializer)->unserialize('/path/to/coverage.php');
ReportFacade::fromSerializedData($data)->renderOpenClover('/tmp/openclover.xml');Dependency Dashboard
Never-executed `match` default arm reported as covered when the `match` is the operand of `return`
Refactor how filtering works
identifying uncovered (executable) lines from the XML export
Add branch coverage statistics to XML report output