opcov / phpunit
PHPUnit 12/13 and Pest 4/5 integration for the opcov coverage extension
Requires
- php: ~8.4.0 || ~8.5.0 || ~8.6.0
- composer-plugin-api: ^2.2
- ext-dom: *
- ext-json: *
- phpunit/phpunit: ^12.0 || ^13.3
Requires (Dev)
None
Suggests
- ext-curl: Downloads the opcov CLI; without it allow_url_fopen and ext-openssl are used
- ext-opcov: The opcov extension that collects the coverage; see docs/install.md
- ext-pcntl: Required by vendor/bin/opcov-phpunit to start the test runner, and lets vendor/bin/opcov replace itself with the opcov CLI
- ext-posix: Required by vendor/bin/opcov-phpunit to create its private run directory
Provides
None
Conflicts
None
Replaces
None
README
PHPUnit 12/13 and Pest 4 integration for opcov, the opcode-level line, branch-outcome and loop coverage extension for PHP.
composer require --dev opcov/phpunit
It also installs the opcov command as vendor/bin/opcov: the package is a
Composer plugin that downloads the native binary matching its version and
checks it against the release's checksums (allow it with
composer config allow-plugins.opcov/phpunit true, or let vendor/bin/opcov
download it on first use).
The extension itself installs with pie install opcov/opcov (see
docs/install.md).
Usage, configuration, paratest, the PHPUnit 13.3 coverage driver and the
.cov converter are documented in
docs/phpunit.md.
This repository is a read-only split of
php/phpunit in
stubbedev/opcov, published on every change there. Report issues and send pull
requests to stubbedev/opcov.