Monday, October 26, 2026 4,350 lists 78,101 records on file
List your app or device

  1. Home
  2. Test Coverage Tools
  3. PHP_CodeCoverage

PHP_CodeCoverage

On the record

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

Alternatives to PHP_CodeCoverage

Every alternative, ranked