shipmonk / turbocov-phpunit
PHPUnit code coverage driver for the turbocov extension, which runs covered code at plain PHP speed
Requires
- php: ^8.4
- ext-turbocov: *
- phpunit/php-code-coverage: ^14.3
Requires (Dev)
- editorconfig-checker/editorconfig-checker: 10.7.0
- ergebnis/composer-normalize: 2.48.2
- phpstan/phpstan: 2.2.0
- phpstan/phpstan-phpunit: 2.0.16
- phpstan/phpstan-strict-rules: 2.0.11
- phpunit/phpunit: ^13.3
- shipmonk/coding-standard: ^0.2.4
- shipmonk/composer-dependency-analyser: 1.8.4
- shipmonk/dead-code-detector: ^1.0
- shipmonk/name-collision-detector: 2.1.1
- shipmonk/phpstan-rules: 4.3.6
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-20 07:47:14 UTC
README
PHPUnit coverage driver for the turbocov extension.
PHPUnit knows only Xdebug and PCOV. This package gives it one class, ShipMonk\Turbocov\TurbocovDriver, that collects coverage with turbocov.
Performance
Installation
pie install shipmonk/turbocov composer require --dev shipmonk/turbocov-phpunit
Usage
Set the driver in phpunit.xml:
<coverage driver="ShipMonk\Turbocov\TurbocovDriver"/>
Then run PHPUnit with the paths to collect:
php -d turbocov.collect_paths=src vendor/bin/phpunit --coverage-html coverage
The README of turbocov describes the settings, the limitations and the use with older PHPUnit.
Requirements
- PHPUnit 13.3 or later
- The turbocov extension
Behavior
The driver stops the run before the first test when turbocov cannot collect coverage. PHPUnit shows the reason. A wrong setup does not give an empty report.
License
MIT. See LICENSE.