Migrate phpunit/php-code-coverage to TypeScript

C Runtime-assisted · version 12.3.1

phpunit/php-code-coverage 12.3.1 is a PHP package released under the BSD-3-Clause license and requires PHP >=8.3. Pext migrates it to TypeScript; on Node.js, 106 of 207 PHPUnit tests pass (51.2%), with 1 failure, 100 errors and 18 skipped. It depends on 8 tracked packages (weakest tier: Converted), and 2 tracked packages depend on it.

Library that provides collection, processing, and rendering functionality for PHP code coverage information.

ConvertsYes
Runs on Node.jsYes
Runs on BunNot yet measured
TypeScript typesNot emitted

PHPUnit results on Node.js

51.2% of 207 tests passing (106 passed, 1 failed, 100 errors, 18 skipped). Verified 2026-10-26.

Where tests fail

The 5 test classes with the most failing tests on Node.js:

Test classFailing tests
MapperTest15
CachingSourceAnalyserTest12
ParsingSourceAnalyserTest12
TextTest9
CodeUnitFindingVisitorTest6

The remaining 47 failing tests are spread across other classes.

What “Runtime-assisted” means

Runs and passes most of its tests, with the Pext runtime doing visible work to preserve PHP behaviour.

Requirements

PHP
>=8.3
Extensions
domlibxmlxmlwriter

As declared in the package's Composer metadata. Pext provides PHP extensions through its runtime modules.

Dependencies

Weakest dependency: D Converted

Used by

More from phpunit

Upstream

Version
12.3.1
License
BSD-3-Clause
Homepage
https://github.com/sebastianbergmann/php-code-coverage
Keywords
coverage, testing, xunit

Migrating a codebase that uses phpunit/php-code-coverage?

See how Pext migrates a real PHP application, its Composer dependencies and its test suite to TypeScript.