All notable changes of the PHPUnit 9.3 release series are documented in this file using the Keep a CHANGELOG principles.
9.3.0 - 2020-08-07
- #3936: Support using
@dependsto depend on classes - #4260:
pathCoverageattribute on thephpunit/coverageelement of the XML configuration file for enabling path coverage for code coverage drivers that support it - #4314: Add option to exit with exit code
1when no tests are executed
- #4226: Deprecate
--dump-xdebug-filterand--prepend - #4264: Refactor logical operator constraints
PHPUnit\Framework\TestCase::$backupGlobalsBlacklistis now deprecated, please usePHPUnit\Framework\TestCase::$backupGlobalsExcludeListinsteadPHPUnit\Framework\TestCase::$backupStaticAttributesBlacklistis now deprecated, please usePHPUnit\Framework\TestCase::$backupStaticAttributesExcludeListinsteadPHPUnit\Util\Blacklistis now deprecated, please usePHPUnit\Util\ExcludeListinstead- Using
--whitelist <directory>to include a directory in code coverage reports is now deprecated, please use--coverage-filter <directory>instead - Using
<filter><whitelist><include>...</include></whitelist></filterto include a directory in code coverage reports is now deprecated, please use<coverage><include>...</include></coverage>instead - Using
<filter><whitelist><exclude>...</exclude></whitelist></filterto exclude a directory from code coverage reports is now deprecated, please use<coverage><exclude>...</exclude></coverage>instead - Using
<filter><whitelist addUncoveredFilesFromWhitelist="false">...</whitelist></filter>to control whether or not uncovered files should be added to code coverage reports is now deprecated, please use<coverage includeUncoveredFiles="false">...</coverage>instead - Using
<filter><whitelist processUncoveredFilesFromWhitelist="true">...</whitelist></filter>to control whether or not uncovered files should be processed for code coverage reporting is now deprecated, please use<coverage processUncoveredFiles="true">...</coverage>instead - Using
<phpunit cacheTokens="true">...</phpunit>to configure the token cache (which can reduce the time needed to process multiple code coverage reports) is now deprecated, please use<phpunit><coverage cacheTokens="true">...</coverage></phpunit>instead - Using
<phpunit disableCodeCoverageIgnore="true">...</phpunit>to configure whether@coverCoverageIgnoreannotations should be ignored is now deprecated, please use<phpunit><coverage disableCodeCoverageIgnore="true">...</coverage></phpunit>instead - Using
<phpunit ignoreDeprecatedCodeUnitsFromCodeCoverage="true">...</phpunit>to configure whether code units annotated with@deprecatedshould be ignored is now deprecated, please use<phpunit><coverage ignoreDeprecatedCodeUnits="true">...</coverage></phpunit>instead - Using
<logging><log type="coverage-clover" target="clover.xml"/></logging>to configure the Clover XML code coverage report is now deprecated, please use<coverage><report><clover outputFile="clover.xml"/></report></coverage>instead - Using
<logging><log type="coverage-crap4j" target="crap4j.xml" threshold="50"/></logging>to configure the Crap4J XML code coverage report is now deprecated, please use<coverage><report><crap4j outputFile="crap4j.xml" threshold="50"/></report></coverage>instead - Using
<logging><log type="coverage-html" target="coverage" lowUpperBound="50" highLowerBound="90"/></logging>to configure the HTML code coverage report is now deprecated, please use<coverage><report><html outputDirectory="coverage" lowUpperBound="50" highLowerBound="90"/></report></coverage>instead - Using
<logging><log type="coverage-php" target="coverage.php"/></logging>to configure the PHP code coverage report is now deprecated, please use<coverage><report><php outputFile="coverage.php"/></report></coverage>instead - Using
<logging><log type="coverage-text" target="coverage.txt" showUncoveredFiles="false" showOnlySummary="true"/></logging>to configure the Text code coverage report is now deprecated, please use<coverage><report><text outputFile="coverage.txt" showUncoveredFiles="false" showOnlySummary="true"/></report></coverage>instead - Using
<logging><log type="coverage-xml" target="coverage"/></logging>to configure the XML code coverage report is now deprecated, please use<coverage><report><xml outputDirectory="coverage"/></report></coverage>instead - Using
<logging><log type="junit" target="junit.xml"/></logging>to configure the JUnit XML logger is now deprecated, please use<logging><junit outputFile="junit.xml"/></logging>instead - Using
<logging><log type="teamcity" target="teamcity.txt"/></logging>to configure the TeamCity logger is now deprecated, please use<logging><teamcity outputFile="teamcity.txt"/></logging>instead - Using
<logging><log type="testdox-html" target="testdox.html"/></logging>to configure the TestDox HTML logger is now deprecated, please use<logging><testdoxHtml outputFile="testdox.html"/></logging>instead - Using
<logging><log type="testdox-text" target="testdox.txt"/></logging>to configure the TestDox Text logger is now deprecated, please use<logging><testdoxText outputFile="testdox.txt"/></logging>instead - Using
<logging><log type="testdox-xml" target="testdox.xml"/></logging>to configure the TestDox XML logger is now deprecated, please use<logging><testdoxXml outputFile="testdox.xml"/></logging>instead - Using
<logging><log type="plain" target="logfile.txt"/></logging>to configure the plain text logger is now deprecated, please use<logging><text outputFile="logfile.txt"/></logging>instead --generate-configurationgenerates a configuration file withfailOnRisky="true"andfailOnWarning="true"