build(deps-dev): bump phpunit/phpunit from 9.5.28 to 13.1.10#359
build(deps-dev): bump phpunit/phpunit from 9.5.28 to 13.1.10#359dependabot[bot] wants to merge 1 commit into
Conversation
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.5.28 to 13.1.10. - [Release notes](https://github.com/sebastianbergmann/phpunit/releases) - [Changelog](https://github.com/sebastianbergmann/phpunit/blob/13.1.10/ChangeLog-13.1.md) - [Commits](sebastianbergmann/phpunit@9.5.28...13.1.10) --- updated-dependencies: - dependency-name: phpunit/phpunit dependency-version: 13.1.10 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Duplication | 0 |
AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.
TIP This summary will be updated as you push new changes.
There was a problem hiding this comment.
Pull Request Overview
This PR attempts a major version upgrade of PHPUnit from 9 to 13. This jump spans four major releases, introducing fundamental breaking changes, including a new event system, a rewritten configuration schema (introduced in v10), and the removal of various mock builders.
The current implementation is incomplete and likely to fail. There are no updates to the 'phpunit.xml' configuration file to match the new schema, nor is there a corresponding update to the project's minimum PHP requirement. PHPUnit versions 11 and above require PHP 8.2 or higher. Additionally, the test suite likely requires manual refactoring to add ': void' return types to lifecycle methods and to adapt to the removed functionality.
About this PR
- The upgrade from PHPUnit 9 to 13 involves substantial breaking changes in the event system, assertions, and configuration schema. This PR currently only modifies the version constraint without addressing these systemic requirements.
Test suggestions
- Execute the test suite with PHPUnit 13 to ensure compatibility with breaking changes introduced since version 9.
- Update the phpunit.xml configuration file to comply with the schema changes introduced in PHPUnit 10 and later.
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Execute the test suite with PHPUnit 13 to ensure compatibility with breaking changes introduced since version 9.
2. Update the phpunit.xml configuration file to comply with the schema changes introduced in PHPUnit 10 and later.
TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback
| }, | ||
| "require-dev": { | ||
| "phpunit/phpunit": "^9.0", | ||
| "phpunit/phpunit": "^13.1", |
There was a problem hiding this comment.
🔴 HIGH RISK
Updating from PHPUnit 9 to 13 involves significant breaking changes, such as the new event system in v10, the removal of certain mock builders, and a new configuration schema. This upgrade requires PHP 8.2 or higher; however, the 'require' section of your composer.json does not enforce this. Additionally, you will likely need to update test lifecycle methods (e.g., adding ': void' to 'setUp' and 'tearDown') and migrate your 'phpunit.xml' file.
|
Superseded by #360. |
Bumps phpunit/phpunit from 9.5.28 to 13.1.10.
Release notes
Sourced from phpunit/phpunit's releases.
... (truncated)
Changelog
Sourced from phpunit/phpunit's changelog.
... (truncated)
Commits
3895909Prepare release5be497cUpdate dependencies4aab6e3Pass configuration options introduced in sebastian/diff 8.3.028ccd33Update dependencies6accbbeMerge branch '12.5' into 13.1d4409c7Do not persist Git credentialse8098c5Merge branch '12.5' into 13.1ecbca50Merge branch '11.5' into 12.55fd7636Merge branch '10.5' into 11.59408671Merge branch '9.6' into 10.5Dependabot 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)