php-console
php-console copied to clipboard
chore(deps-dev): update phpunit/phpunit requirement from ^9.1 to ^9.1 || ^10.0
Updates the requirements on phpunit/phpunit to permit the latest version.
Changelog
Sourced from phpunit/phpunit's changelog.
[10.0.0] - 2023-02-03
Added
- #4676: Event System for extending PHPUnit's test runner
- #4502: Support PHP 8 attributes for adding metadata to test classes and test methods as well as tested code units
- #4641:
assertStringEqualsStringIgnoringLineEndings()
andassertStringContainsStringIgnoringLineEndings()
- #4650: Support dist file name
phpunit.dist.xml
- #4657:
--exclude-testsuite
option- #4818:
assertIsList()
- #4892: Make colors used in HTML code coverage report configurable
- #4893: Make path to custom.css for HTML code coverage report configurable
- #5097: Support for
enum
values in TestDox placeholder replacementsTestCase::createStubForIntersectionOfInterfaces()
andTestCase::createMockForIntersectionOfInterfaces()
#[ExcludeGlobalVariableFromBackup('variable')]
attribute for excluding a global variable from the backup/restore of global and super-global variables#[ExcludeStaticPropertyFromBackup('className', 'propertyName')]
attribute for excluding a static property from the backup/restore of static properties in user-defined classes--log-events-text <file>
option that controls streaming of event information (without event telemetry) in text format to a file--log-events-verbose-text <file>
option that controls streaming of event information (with event telemetry) in text format to a file--no-progress
option to disable test execution progress output--no-results
option to disable test result output--no-output
option to disable all output--display-incomplete
option anddisplayDetailsOnIncompleteTests
XML configuration attribute to control whether details on incomplete tests should be displayed--display-skipped
option anddisplayDetailsOnSkippedTests
XML configuration attribute to control whether details on skipped tests should be displayed--display-deprecations
option anddisplayDetailsOnTestsThatTriggerDeprecations
XML configuration attribute to control whether details on tests that triggerE_DEPRECATED
orE_USER_DEPRECATED
should be displayed--display-errors
option anddisplayDetailsOnTestsThatTriggerErrors
XML configuration attribute to control whether details on tests that triggerE_ERROR
orE_USER_ERROR
should be displayed--display-notices
option anddisplayDetailsOnTestsThatTriggerNotices
XML configuration attribute to control whether details on tests that triggerE_STRING
,E_NOTICE
, orE_USER_NOTICE
should be displayed--display-warnings
option anddisplayDetailsOnTestsThatTriggerWarnings
XML configuration attribute to control whether details on tests that triggerE_WARNING
orE_USER_WARNING
should be displayedChanged
- #3871: Declare return types for
InvocationStubber
methods- #3954: Disable global state preservation for process isolation by default
- #4599: Unify cache configuration
- #4603: Use "property" instead of "attribute" for configuring the backup of static fields
- #4656: Prevent doubling of
__destruct()
- Using a non-static method as a data provider is now deprecated
- Using a non-public method as a data provider is now deprecated
- Declaring a data provider method to require an argument is now deprecated
- A test method now continues execution after test(ed) code triggered
E_(USER_)DEPRECATED
,E_(USER_)NOTICE
,E_STRICT
, orE_(USER_)WARNING
- PHPUnit no longer invokes a static method named
suite
on a class that is declared in a file that is passed as an argument to the CLI test runner- PHPUnit no longer promotes variables that are global in the bootstrap script's scope to global variables in the test runner's scope (use
$GLOBALS['variable'] = 'value'
instead of$variable = 'value'
in your bootstrap script)PHPUnit\Framework\TestCase::$backupGlobals
can no longer be used to enable or disable the backup/restore of global and super-global variables for a test case classPHPUnit\Framework\TestCase::$backupStaticAttributes
can no longer be used to enable or disable the backup/restore of static properties in user-defined classes for a test case class@author
is no longer an alias for@group
- The JUnit XML logfile now has both
name
andfile
attributes on<testcase>
elements for PHPT tests- The JUnit XML logfile no longer has
<system-out>
elements that contain the output printed tostdout
by a test- The JUnit XML logfile now only reports test outcome (errored, failed, incomplete, skipped, or passed) and no longer test issues (considered risky, for instance)
- The
forceCoversAnnotation
attribute of the<phpunit>
element of PHPUnit's XML configuration file has been renamed torequireCoverageMetadata
- The
beStrictAboutCoversAnnotation
attribute of the<phpunit>
element of PHPUnit's XML configuration file has been renamed tobeStrictAboutCoverageMetadata
- The public methods of
PHPUnit\Framework\Assert
andPHPUnit\Framework\TestCase
are nowfinal
... (truncated)
Commits
c4c60c3
Prepare release8c26637
csfix615abd5
remove nullable optionf02e6b7
Move class initialization up in the constructor.1751920
Merge branch '9.6'2b3bfef
Merge branch '9.5' into 9.6a3549f1
Add test for #50742aa65e1
Do not rely on globally installed Phivedf0f454
Do not rely on globally installed Phive7f91895
Revert "Sync with https://github.com/sebastianbergmann/php-code-coverage/comm...- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)