phpunit/php-code-coverage
phpunit/php-code-coverage collects, processes, and renders PHP code coverage data. Use it to start/stop coverage during tests, filter included files, and generate reports such as OpenClover XML from live runs or serialized coverage data.
SebastianBergmann\CodeCoverage\Serialization\Serializer class for serializing SebastianBergmann\CodeCoverage\CodeCoverage objects in a versioned format to a fileSebastianBergmann\CodeCoverage\Serialization\Unserializer class for unserializing SebastianBergmann\CodeCoverage\CodeCoverage objects from a file creating using SebastianBergmann\CodeCoverage\Serialization\SerializerSebastianBergmann\CodeCoverage\Report\Facade class for generating reports from both SebastianBergmann\CodeCoverage\CodeCoverage objects (using Facade::fromObject()) as well as from data unserialized with SebastianBergmann\CodeCoverage\Serialization\Unserializer::unserialize() (using Facade::fromSerializedData())--coverage-php, for example) should use relative pathsSebastianBergmann\CodeCoverage\Report\Facade class must be used for report generationSebastianBergmann\CodeCoverage\Serialization\Serializer is incompatible with the format of the file that was written by SebastianBergmann\CodeCoverage\Report\PHP in the past<build> element and its children of the XML report generated by SebastianBergmann\CodeCoverage\Report\Xml\Facade require the optional arguments to be passed to the process() methodTestSize and TestStatus value objects are now enumerationsSebastianBergmann\CodeCoverage\Report\PHP class was removed, use the new SebastianBergmann\CodeCoverage\Serializer class insteadCachingSourceAnalyser::read() with parallel test runnersdriverIs*() must not assume that CodeCoverage::$driver is setdriverIs*() must not assume that CodeCoverage::$driver is set<source> element for the XML report<test> elements under projects/tests in the XML reports index file__sleep() method (which will be deprecated in PHP 8.5)CodeCoverageMapBuilder::build()<testproject> element. This feature is experimental and the generated XML might change in order to improve compliance with the OpenClover project's XML schema definition further. Such changes will be made in bugfix and/or minor releases even if they break backward compatibility.file_get_contents() call with is_file() call to avoid problems with error handlers that act on suppressed warningsAttributeParentConnectingVisitorClassesThatExtendClass targetCacheWarmer::warmCache() now returns the number of cache hits and cache missesfn differently than other named argumentsVersion::id()SebastianBergmann\CodeCoverage\Filter::includeUncoveredFiles() and SebastianBergmann\CodeCoverage\Filter::excludeUncoveredFiles() methods are no longer deprecatedfn differently than other named arguments#CoversClass does not target code in parent class(es)Version::id()How can I help you explore Laravel packages today?