Bump phpunit/phpunit from 10.0.19 to 10.1.0
Bumps phpunit/phpunit from 10.0.19 to 10.1.0.
Changelog
Sourced from phpunit/phpunit's changelog.
10.1.0 - 2023-04-14
Added
- #5168: Allow test runner extensions to disable default progress and result printing
- #5196: Optionally (fail|stop) on (notice|deprecation) events
- #5201: Add
TestCase::registerFailureType()
to register interface that marks exceptions to be treated as failures, not errors- #5231:
assertObjectHasProperty()
andassertObjectNotHasProperty()
- #5237: Implement
IgnoreClassForCodeCoverage
,IgnoreMethodForCodeCoverage
, andIgnoreFunctionForCodeCoverage
attributes- #5293: Allow to restrict the reporting of deprecations, notices, and warnings to specified directories
- #5294: Introduce
<source>
XML configuration element to configure "your code"- #5300:
TestCase::transformException()
hook methodTestCase::createConfiguredStub()
was added as an analogon toTestCase::createConfiguredMock()
- The
PHPUnit\Event\TestRunner\ExecutionAborted
event is now emitted when the execution of tests is stopped due tostopOn*
attributes on the<phpunit>
XML configuration element or due to--stop-on-*
CLI options- Event telemetry now includes status information for PHP's garbage collector
Changed
- #5198: Display PHPUnit deprecations when TestDox output is used
- #5326: Ignore suppressed
E_USER_*
errors againDeprecated
- #5236: Deprecate the
CodeCoverageIgnore
attribute- #5240: Deprecate
TestCase::createTestProxy()
(this method only has a@deprecated
annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12)- #5241: Deprecate
TestCase::getMockForAbstractClass()
(this method only has a@deprecated
annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12)- #5242: Deprecate
TestCase::getMockFromWsdl()
(this method only has a@deprecated
annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12)- #5243: Deprecate
TestCase::getMockForTrait()
(this method only has a@deprecated
annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12)- #5244: Deprecate
TestCase::getObjectForTrait()
(this method only has a@deprecated
annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12)- #5305: Deprecate
MockBuilder::getMockForAbstractClass()
(this method only has a@deprecated
annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12)- #5306: Deprecate
MockBuilder::getMockForTrait()
(this method only has a@deprecated
annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12)- #5307: Deprecate
MockBuilder::enableProxyingToOriginalMethods()
,MockBuilder::disableProxyingToOriginalMethods()
, andMockBuilder::setProxyTarget()
(these methods only have a@deprecated
annotation for now; using these methods will trigger a deprecation warning in PHPUnit 11; these methods will be removed in PHPUnit 12)- #5308: Deprecate
MockBuilder::allowMockingUnknownTypes()
andMockBuilder::disallowMockingUnknownTypes()
(these methods only have a@deprecated
annotation for now; using these methods will trigger a deprecation warning in PHPUnit 11; these methods will be removed in PHPUnit 12)- #5315: Deprecate
MockBuilder::enableArgumentCloning()
andMockBuilder::disableArgumentCloning()
(these methods only have a@deprecated
annotation for now; using these methods will trigger a deprecation warning in PHPUnit 11; these methods will be removed in PHPUnit 12)- #5320: Deprecate
MockBuilder::addMethods()
(this method only has a@deprecated
annotation for now; using this method will trigger a deprecation warning in PHPUnit 11; this method will be removed in PHPUnit 12)- Using
<coverage><include>...</include><exclude>...</exclude></coverage>
in the XML configuration file to configure code that should be included in code coverage reporting is now deprecated and support for this will be removed in PHPUnit 11 (use<source><include>...</include><exclude>...</exclude></source>
instead)PHPUnit\TextUI\Configuration\Configuration::hasNonEmptyListOfFilesToBeIncludedInCodeCoverageReport()
(usehasNonEmptyListOfSourceFiles()
instead)PHPUnit\TextUI\Configuration\Configuration::coverageIncludeDirectories()
(usesourceIncludeDirectories()
instead)PHPUnit\TextUI\Configuration\Configuration::coverageIncludeFiles()
(usesourceIncludeFiles()
instead)PHPUnit\TextUI\Configuration\Configuration::coverageExcludeDirectories()
(usesourceExcludeDirectories()
instead)PHPUnit\TextUI\Configuration\Configuration::coverageExcludeFiles()
(usesourceExcludeFiles()
instead)
Commits
-
5a477ae
Prepare release -
95b5cb8
[TASK] Take silenced E_USER_* errors as silenced again -
fcff1c5
Closes #5324 -
07c279b
Merge branch '10.0' -
15d3109
Merge branch '9.6' into 10.0 -
0ef4d1f
Fix: Adjust order of values when assembling error message -
eb6fe34
Merge branch '10.0' -
54e5ab5
Update Psalm baseline -
93fb608
phpunit/php-code-coverage 10.1.0 has been released -
11feffc
Delete PHPUnit 10.0 ChangeLog - Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot rebase
will rebase this MR -
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts