Skip to content

Releases: sebastianbergmann/php-code-coverage

phpunit/php-code-coverage 14.2.2

08 Jun 11:51
Immutable release. Only release title and notes can be modified.
14.2.2
10d7da3

Choose a tag to compare

Fixed

  • #1230: Short-form property hook bodies wrongly classified as executable

phpunit/php-code-coverage 14.2.1

07 Jun 09:08
Immutable release. Only release title and notes can be modified.
14.2.1
ed4f43a

Choose a tag to compare

Added

  • RawCodeCoverageData::fromLineAndBranchCoverage()

phpunit/php-code-coverage 14.2.0

05 Jun 03:00
Immutable release. Only release title and notes can be modified.
14.2.0
ab8a36c

Choose a tag to compare

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

phpunit/php-code-coverage 14.1.10

01 Jun 13:27
Immutable release. Only release title and notes can be modified.
14.1.10
3719c5b

Choose a tag to compare

Fixed

  • #1212: Filenames in HTML report are not escaped

phpunit/php-code-coverage 12.5.7

01 Jun 13:25
Immutable release. Only release title and notes can be modified.
12.5.7
186dab5

Choose a tag to compare

Fixed

  • #1212: Filenames in HTML report are not escaped

phpunit/php-code-coverage 14.1.9

16 May 05:16
Immutable release. Only release title and notes can be modified.
14.1.9
655533a

Choose a tag to compare

Fixed

  • #1160: Ternary inside array spread: else-arm's line is falsely reported as not covered

phpunit/php-code-coverage 14.1.8

09 May 12:08
Immutable release. Only release title and notes can be modified.
14.1.8
031856c

Choose a tag to compare

Fixed

  • #1159: Statements inside a closure passed as a call argument are incorrectly reported as not covered
  • case statements are treated as branch operators

phpunit/php-code-coverage 14.1.7

04 May 15:58
Immutable release. Only release title and notes can be modified.
14.1.7
da6e6b6

Choose a tag to compare

Fixed

  • #1154: Opening and closing lines of match (true) expressions are reported as not executed
  • #1156: Scalar literals produce incorrect code coverage information

phpunit/php-code-coverage 14.1.6

24 Apr 13:32
Immutable release. Only release title and notes can be modified.
14.1.6
4991e47

Choose a tag to compare

Fixed

  • #1077: UnintentionallyCoveredCodeException should report ClassName::methodName when methods are targeted

phpunit/php-code-coverage 14.1.5

24 Apr 12:28
Immutable release. Only release title and notes can be modified.
14.1.5
30d90b0

Choose a tag to compare

Changed

  • #941: Sort directories and files in strict alphabetical order
  • #1077: UnintentionallyCoveredCodeException should report ClassName::methodName when methods are targeted

Fixed

  • #491: Ensure strings are valid UTF-8 before passing them to XML APIs
  • #919: Not all lines of an interface are ignored
  • #1007: Incorrect branch/path coverage totals for uncovered files
  • #1029: Lines of multiline ternary expressions inside array literals are not shown in coverage reports
  • #1030: Start line of code unit includes attributes