Download Latest Version phpunit_php-code-coverage 14.2.3 source code.tar.gz (164.2 kB)
Email in envelope

Get an email when there's a new version of PHP Code Coverage

Home / 14.2.0
Name Modified Size InfoDownloads / Week
Parent folder
phpunit_php-code-coverage 14.2.0 source code.tar.gz 2026-06-05 164.0 kB
phpunit_php-code-coverage 14.2.0 source code.zip 2026-06-05 273.9 kB
README.md 2026-06-05 2.0 kB
Totals: 3 Items   439.8 kB 0

Added

  • SebastianBergmann\CodeCoverage\Driver\Granularity enumeration with Line, LineAndBranch, and LineBranchAndPath cases
  • SebastianBergmann\CodeCoverage\Driver\Selector::driver(Filter, Granularity) for selecting a driver by required granularity
  • SebastianBergmann\CodeCoverage\NoSupportedDriverAvailableException thrown when no driver supports the requested granularity

Changed

  • #1186: Merger::merge() now accepts any kind of iterable
  • Reduced overhead in static analysis
  • The HTML report now distinguishes three rendering modes (line, line + branch, line + branch + path) so that a driver providing branch coverage without path coverage no longer forces path-coverage UI to appear with empty data
  • The Text report now gates the Branches: and Paths: lines on the presence of the corresponding data independently
  • Various internal refactorings to improve code readability

Deprecated

  • SebastianBergmann\CodeCoverage\Driver\Selector::forLineCoverage(), use Selector::select() with Granularity::Line instead
  • SebastianBergmann\CodeCoverage\Driver\Selector::forLineAndPathCoverage(), use Selector::select() with Granularity::LineBranchAndPath instead
  • SebastianBergmann\CodeCoverage\CodeCoverage::enableBranchAndPathCoverage(), use Selector::select() with Granularity::LineBranchAndPath instead
  • SebastianBergmann\CodeCoverage\CodeCoverage::disableBranchAndPathCoverage(), use Selector::select() with Granularity::Line instead
  • SebastianBergmann\CodeCoverage\CodeCoverage::collectsBranchAndPathCoverage()
  • SebastianBergmann\CodeCoverage\BranchAndPathCoverageNotSupportedException, replaced by BranchCoverageNotSupportedException and PathCoverageNotSupportedException

Fixed

  • #1159: Statements inside a closure passed as a call argument are incorrectly reported as not covered
Source: README.md, updated 2026-06-05