PHP_CodeCoverage
github.com
Spec sheet
- Purpose
- The library collects, processes, and renders PHP code coverage information.Read 11 Oct 2026 · github.com
- License
- The repository identifies the library's license as BSD-3-Clause.Read 11 Oct 2026 · github.com
- Coverage collection
- The usage example starts and stops coverage collection for a named test.Read 11 Oct 2026 · github.com
- Coverage drivers
- The package suggests PCOV for line coverage and Xdebug for line, branch and path coverage.Read 4 Oct 2026 · github.com
- Coverage limitation
- The PHPUnit manual says PCOV supports line coverage only; branch and path coverage require data collected with Xdebug.Read 4 Oct 2026 · docs.phpunit.de
- Coverage metrics
- The PHPUnit manual says the library supports line, branch, path, function and method, class and trait coverage, and the CRAP index.Read 4 Oct 2026 · docs.phpunit.de
- Development use
- The README recommends adding it as a development-time dependency when it is only needed to run a project's test suite.Read 11 Oct 2026 · github.com
- HTML reports
- HTML reports provide directory and file views with line-by-line highlighting, plus class, trait and function views organized by namespace.Read 4 Oct 2026 · docs.phpunit.de
- Installation
- The README shows installation as a per-project dependency with Composer.Read 11 Oct 2026 · github.com
- Integration
- The repository describes the library as a first-party dependency of PHPUnit.Read 4 Oct 2026 · github.com
- Maintainer
- The Composer manifest names Sebastian Bergmann as the lead author.Read 11 Oct 2026 · github.com
- Parallel runs
- Serialized coverage files from separate test runs can be merged with phpcov to produce a combined report.Read 4 Oct 2026 · docs.phpunit.de
- Patch analysis
- The phpcov patch-coverage command calculates coverage for changed lines in a unified diff.Read 4 Oct 2026 · docs.phpunit.de
- PHP requirement
- The Composer manifest requires PHP version 8.4 or later.Read 11 Oct 2026 · github.com
- Report formats
- The PHPUnit manual lists HTML, Clover, OpenClover, Cobertura, Crap4J, PHPUnit XML, text, JSONL and serialized PHP output.Read 4 Oct 2026 · docs.phpunit.de
- Report output
- The example renders an OpenClover report from collected coverage data.Read 11 Oct 2026 · github.com
- Runtime extensions
- The Composer manifest requires the DOM, libxml, mbstring, and xmlwriter PHP extensions.Read 11 Oct 2026 · github.com
- Runtime requirements
- The current package requires PHP 8.4 or later and the DOM, libxml, mbstring and xmlwriter extensions.Read 4 Oct 2026 · github.com
- Security policy coverage
- The project states that PHPUnit's security policy also applies to this library because it is a first-party PHPUnit dependency.Read 11 Oct 2026 · github.com
- Security reporting
- The security policy asks vulnerability reporters to use coordinated disclosure and says not to report vulnerabilities through public GitHub issues, discussions, or pull requests.Read 11 Oct 2026 · github.com
- Serialized data
- The README shows generating an OpenClover report from serialized coverage data using an unserializer.Read 11 Oct 2026 · github.com
Where Specifiction places it
- Test Coverage Tools#25 of 276.7