Releases: sebastianbergmann/php-code-coverage
Releases · sebastianbergmann/php-code-coverage
phpunit/php-code-coverage 14.2.2
Immutable
release. Only release title and notes can be modified.
Fixed
- #1230: Short-form property hook bodies wrongly classified as executable
phpunit/php-code-coverage 14.2.1
Immutable
release. Only release title and notes can be modified.
Added
RawCodeCoverageData::fromLineAndBranchCoverage()
phpunit/php-code-coverage 14.2.0
Immutable
release. Only release title and notes can be modified.
Added
SebastianBergmann\CodeCoverage\Driver\Granularityenumeration withLine,LineAndBranch, andLineBranchAndPathcasesSebastianBergmann\CodeCoverage\Driver\Selector::driver(Filter, Granularity)for selecting a driver by required granularitySebastianBergmann\CodeCoverage\NoSupportedDriverAvailableExceptionthrown 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:andPaths:lines on the presence of the corresponding data independently - Various internal refactorings to improve code readability
Deprecated
SebastianBergmann\CodeCoverage\Driver\Selector::forLineCoverage(), useSelector::select()withGranularity::LineinsteadSebastianBergmann\CodeCoverage\Driver\Selector::forLineAndPathCoverage(), useSelector::select()withGranularity::LineBranchAndPathinsteadSebastianBergmann\CodeCoverage\CodeCoverage::enableBranchAndPathCoverage(), useSelector::select()withGranularity::LineBranchAndPathinsteadSebastianBergmann\CodeCoverage\CodeCoverage::disableBranchAndPathCoverage(), useSelector::select()withGranularity::LineinsteadSebastianBergmann\CodeCoverage\CodeCoverage::collectsBranchAndPathCoverage()SebastianBergmann\CodeCoverage\BranchAndPathCoverageNotSupportedException, replaced byBranchCoverageNotSupportedExceptionandPathCoverageNotSupportedException
Fixed
- #1159: Statements inside a closure passed as a call argument are incorrectly reported as not covered
phpunit/php-code-coverage 14.1.10
Immutable
release. Only release title and notes can be modified.
Fixed
- #1212: Filenames in HTML report are not escaped
phpunit/php-code-coverage 12.5.7
Immutable
release. Only release title and notes can be modified.
Fixed
- #1212: Filenames in HTML report are not escaped
phpunit/php-code-coverage 14.1.9
Immutable
release. Only release title and notes can be modified.
Fixed
- #1160: Ternary inside array spread: else-arm's line is falsely reported as not covered
phpunit/php-code-coverage 14.1.8
Immutable
release. Only release title and notes can be modified.
Fixed
- #1159: Statements inside a closure passed as a call argument are incorrectly reported as not covered
casestatements are treated as branch operators
phpunit/php-code-coverage 14.1.7
Immutable
release. Only release title and notes can be modified.
phpunit/php-code-coverage 14.1.6
Immutable
release. Only release title and notes can be modified.
Fixed
- #1077:
UnintentionallyCoveredCodeExceptionshould reportClassName::methodNamewhen methods are targeted
phpunit/php-code-coverage 14.1.5
Immutable
release. Only release title and notes can be modified.
Changed
- #941: Sort directories and files in strict alphabetical order
- #1077:
UnintentionallyCoveredCodeExceptionshould reportClassName::methodNamewhen 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