Skip to content
Permalink
9.0.0
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

ChangeLog

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

9.0.0 - 2020-08-07

Added

  • #761: Support for Branch Coverage and Path Coverage
  • Added SebastianBergmann\CodeCoverage\Driver\Driver::forLineCoverage() for selecting the best available driver for line coverage
  • Added SebastianBergmann\CodeCoverage\Driver\Driver::forLineAndPathCoverage() for selecting the best available driver for path coverage
  • This component is now supported on PHP 8
  • This component now supports Xdebug 3

Changed

  • #746: Remove some ancient workarounds for very old Xdebug versions
  • #747: Use native filtering in PCOV and Xdebug drivers
  • #748: Store raw code coverage in value objects instead of arrays
  • #749: Store processed code coverage in value objects instead of arrays
  • #752: Rework how code coverage settings are propagated to the driver
  • #754: Implement collection of raw branch and path coverage
  • #755: Implement processing of raw branch and path coverage
  • #756: Improve handling of uncovered files
  • SebastianBergmann\CodeCoverage\Filter::addDirectoryToWhitelist() has been renamed to SebastianBergmann\CodeCoverage\Filter::includeDirectory()
  • SebastianBergmann\CodeCoverage\Filter::addFilesToWhitelist() has been renamed to SebastianBergmann\CodeCoverage\Filter::includeFiles()
  • SebastianBergmann\CodeCoverage\Filter::addFileToWhitelist() has been renamed to SebastianBergmann\CodeCoverage\Filter::includeFile()
  • SebastianBergmann\CodeCoverage\Filter::removeDirectoryFromWhitelist() has been renamed to SebastianBergmann\CodeCoverage\Filter::excludeDirectory()
  • SebastianBergmann\CodeCoverage\Filter::removeFileFromWhitelist() has been renamed to SebastianBergmann\CodeCoverage\Filter::excludeFile()
  • SebastianBergmann\CodeCoverage\Filter::isFiltered() has been renamed to SebastianBergmann\CodeCoverage\Filter::isExcluded()
  • SebastianBergmann\CodeCoverage\Filter::getWhitelist() has been renamed to SebastianBergmann\CodeCoverage\Filter::files()
  • The arguments for CodeCoverage::__construct() are no longer optional

Fixed

  • #700: Throw an exception if code coverage fails to write to disk

Removed

  • SebastianBergmann\CodeCoverage\CodeCoverage::setCacheTokens() and SebastianBergmann\CodeCoverage\CodeCoverage::getCacheTokens() have been removed
  • SebastianBergmann\CodeCoverage\CodeCoverage::setCheckForUnintentionallyCoveredCode() has been removed, please use SebastianBergmann\CodeCoverage\CodeCoverage::enableCheckForUnintentionallyCoveredCode() or SebastianBergmann\CodeCoverage\CodeCoverage::disableCheckForUnintentionallyCoveredCode() instead
  • SebastianBergmann\CodeCoverage\CodeCoverage::setSubclassesExcludedFromUnintentionallyCoveredCodeCheck() has been removed, please use SebastianBergmann\CodeCoverage\CodeCoverage::excludeSubclassesOfThisClassFromUnintentionallyCoveredCodeCheck() instead
  • SebastianBergmann\CodeCoverage\CodeCoverage::setAddUncoveredFilesFromWhitelist() has been removed, please use SebastianBergmann\CodeCoverage\CodeCoverage::includeUncoveredFiles() or SebastianBergmann\CodeCoverage\CodeCoverage::excludeUncoveredFiles() instead
  • SebastianBergmann\CodeCoverage\CodeCoverage::setProcessUncoveredFiles() has been removed, please use SebastianBergmann\CodeCoverage\CodeCoverage::processUncoveredFiles() or SebastianBergmann\CodeCoverage\CodeCoverage::doNotProcessUncoveredFiles() instead
  • SebastianBergmann\CodeCoverage\CodeCoverage::setIgnoreDeprecatedCode() has been removed, please use SebastianBergmann\CodeCoverage\CodeCoverage::ignoreDeprecatedCode() or SebastianBergmann\CodeCoverage\CodeCoverage::doNotIgnoreDeprecatedCode() instead
  • SebastianBergmann\CodeCoverage\CodeCoverage::setDisableIgnoredLines() has been removed, please use SebastianBergmann\CodeCoverage\CodeCoverage::enableAnnotationsForIgnoringCode() or SebastianBergmann\CodeCoverage\CodeCoverage::disableAnnotationsForIgnoringCode() instead
  • SebastianBergmann\CodeCoverage\CodeCoverage::setCheckForMissingCoversAnnotation() has been removed
  • SebastianBergmann\CodeCoverage\CodeCoverage::setCheckForUnexecutedCoveredCode() has been removed
  • SebastianBergmann\CodeCoverage\CodeCoverage::setForceCoversAnnotation() has been removed
  • SebastianBergmann\CodeCoverage\Filter::hasWhitelist() has been removed, please use SebastianBergmann\CodeCoverage\Filter::isEmpty() instead
  • SebastianBergmann\CodeCoverage\Filter::getWhitelistedFiles() has been removed
  • SebastianBergmann\CodeCoverage\Filter::setWhitelistedFiles() has been removed

8.0.2 - 2020-05-23

Fixed

  • #750: Inconsistent handling of namespaces
  • #751: Dead code is not highlighted correctly
  • #753: Do not use $_SERVER['REQUEST_TIME'] because the test(ed) code might unset it

8.0.1 - 2020-02-19

Fixed

  • #731: Confusing footer in the HTML report

8.0.0 - 2020-02-07

Fixed

Removed

  • This component is no longer supported on PHP 7.2

7.0.10 - 2019-11-20

Fixed

  • #710: Code Coverage does not work in PhpStorm

7.0.9 - 2019-11-20

Changed

  • #709: Prioritize PCOV over Xdebug

7.0.8 - 2019-09-17

Changed

  • Update HTML report Bootstrap 4.3.1, jQuery 3.4.1, and popper.js 1.15.0

7.0.7 - 2019-07-25

Changed

  • Bumped required version of php-token-stream

7.0.6 - 2019-07-08

Changed

  • Bumped required version of php-token-stream

7.0.5 - 2019-06-06

Fixed

  • #681: use function statements are not ignored

7.0.4 - 2019-05-29

Fixed

  • #682: Code that is not executed is reported as being executed when using PCOV

7.0.3 - 2019-02-26

Fixed

  • #671: TypeError when directory name is a number

7.0.2 - 2019-02-15

Changed

  • Updated HTML report to Bootstrap 4.3.0

Fixed

  • #667: TypeError in PHP reporter

7.0.1 - 2019-02-01

Fixed

  • #664: TypeError when whitelisted file does not exist

7.0.0 - 2019-02-01

Added

  • #663: Support for PCOV

Fixed

  • #654: HTML report fails to load assets
  • #655: Popin pops in outside of screen

Removed

  • This component is no longer supported on PHP 7.1

6.1.4 - 2018-10-31

Fixed

  • #650: Wasted screen space in HTML code coverage report

6.1.3 - 2018-10-23

Changed

  • Use ^3.1 of sebastian/environment again due to regression

6.1.2 - 2018-10-23

Fixed

  • #645: Crash that can occur when php-token-stream parses invalid files

6.1.1 - 2018-10-18

Changed

  • This component now allows ^4 of sebastian/environment

6.1.0 - 2018-10-16

Changed

  • Class names are now abbreviated (unqualified name shown, fully qualified name shown on hover) in the file view of the HTML report
  • Update HTML report to Bootstrap 4