Back to Php Code Coverage

ChangeLog

ChangeLog-14.2.md

14.2.02.2 KB
Original Source

ChangeLog

All notable changes are documented in this file using the Keep a CHANGELOG principles.

14.2.0 - 2026-06-05

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