Skip to content
This repository was archived by the owner on Aug 31, 2026. It is now read-only.

build(deps-dev): bump phpunit/phpunit from 9.5.28 to 13.2.5 - #380

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/composer/phpunit/phpunit-13.2.5
Closed

build(deps-dev): bump phpunit/phpunit from 9.5.28 to 13.2.5#380
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/composer/phpunit/phpunit-13.2.5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 3, 2026

Copy link
Copy Markdown
Contributor

Bumps phpunit/phpunit from 9.5.28 to 13.2.5.

Release notes

Sourced from phpunit/phpunit's releases.

PHPUnit 13.2.5

Changed

  • Messages for tests that are skipped because of an unsatisfied RequiresPhp, RequiresPhpunit, or RequiresPhpExtension version requirement now include the version that is actually being used
  • Warning messages about incomplete version requirements as well as version requirements without a version comparison operator, and the error message for invalid version requirements, now include the full version requirement and explain what is expected

Fixed

  • #6825: Forwarding to previous error handler can result in infinite recursion
  • #6831: PHPUnit's error handler does not respect @ error suppression and forwards suppressed warnings to previous error handler
  • #6833: assertArrayHasKey() does not accept ArrayAccess implementations with a specific value type when test code is analysed with PHPStan at level 9
  • #6854: Deprecation triggered in first-party code is wrongly classified as indirect when the first-party code is called from third-party code
  • Test classes were not sorted relative to each other when tests were ordered by duration

Learn how to install or update PHPUnit 13.2 in the documentation.

Keep up to date with PHPUnit:

PHPUnit 13.2.4

Fixed

  • #6817: Issue is reported even when previously registered error handler turns the error into an exception
  • #6818: Issue is reported when custom error handler checks error_reporting() output dynamically

Learn how to install or update PHPUnit 13.2 in the documentation.

Keep up to date with PHPUnit:

PHPUnit 13.2.3

Changed

  • #6797: Adapt code generated for test double of interface with constructor for PHP 8.6

Learn how to install or update PHPUnit 13.2 in the documentation.

Keep up to date with PHPUnit:

... (truncated)

Changelog

Sourced from phpunit/phpunit's changelog.

[13.2.5] - 2026-07-25

Changed

  • Messages for tests that are skipped because of an unsatisfied RequiresPhp, RequiresPhpunit, or RequiresPhpExtension version requirement now include the version that is actually being used
  • Warning messages about incomplete version requirements as well as version requirements without a version comparison operator, and the error message for invalid version requirements, now include the full version requirement and explain what is expected

Fixed

  • #6825: Forwarding to previous error handler can result in infinite recursion
  • #6831: PHPUnit's error handler does not respect @ error suppression and forwards suppressed warnings to previous error handler
  • #6833: assertArrayHasKey() does not accept ArrayAccess implementations with a specific value type when test code is analysed with PHPStan at level 9
  • #6854: Deprecation triggered in first-party code is wrongly classified as indirect when the first-party code is called from third-party code
  • Test classes were not sorted relative to each other when tests were ordered by duration

[13.2.4] - 2026-07-08

Fixed

  • #6817: Issue is reported even when previously registered error handler turns the error into an exception
  • #6818: Issue is reported when custom error handler checks error_reporting() output dynamically

[13.2.3] - 2026-07-06

Changed

  • #6797: Adapt code generated for test double of interface with constructor for PHP 8.6

[13.2.2] - 2026-06-29

Fixed

  • #6768: Negative priorities for hook methods are rejected by static analysis
  • #6778: Deprecation triggered outside of tests cannot be ignored

[13.2.1] - 2026-06-15

Fixed

  • #6741: Test is not run when --filter matches the name of a data set but not the name of the test method
  • #6743: Improve error message for invalid version constraint in attribute
  • #6744: Environment variable attributes reject empty-string values since PHPUnit 13.2.0

[13.2.0] - 2026-06-05

Added

  • #3387: Specify a list of tests to run
  • #4201: Handle interrupts and display current test results
  • #4501: Option to mark test as risky when it does not contribute to code coverage

... (truncated)

Commits

Dependabot compatibility score

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.5.28 to 13.2.5.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/13.2.5/ChangeLog-13.2.md)
- [Commits](sebastianbergmann/phpunit@9.5.28...13.2.5)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-version: 13.2.5
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Aug 3, 2026
@dependabot
dependabot Bot requested a review from lolgab as a code owner August 3, 2026 07:32
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Aug 3, 2026
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 duplication

Metric Results
Duplication 0

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@codacy-production codacy-production Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR attempts to upgrade phpunit/phpunit from version 9 to 13. This represents a significant leap across multiple major versions, including PHPUnit 10, which introduced a complete rewrite of the internal event system and shifted toward PHP 8 attributes.

While the Codacy analysis indicates the PR is technically 'up to standards' regarding the manifest changes, the update is high-risk because no changes were made to the existing test files. It is highly probable that the current test suite will fail to execute under PHPUnit 13. Furthermore, PHPUnit 13 requires PHP 8.2 or newer; the PR does not confirm if the project's PHP environment meets this requirement. This update should be blocked until the test suite is migrated and environment compatibility is confirmed.

About this PR

  • PHPUnit 13 requires PHP 8.2+. Please verify that the project's PHP constraint in composer.json and the CI/CD environment are compatible with this requirement.
  • The upgrade from PHPUnit 9 to 13 is a major architectural change. You must migrate existing tests to support the new event system and PHP 8 attributes (replacing docblock annotations like @test). Without these changes, the test suite is unlikely to run.

Test suggestions

  • Verify that existing test suites are compatible with PHPUnit 13's breaking changes (e.g., namespace changes, attribute-based metadata, and the new event system).
  • Verify that the project's PHP version constraint is compatible with PHPUnit 13 (which requires PHP 8.2 or newer).
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify that existing test suites are compatible with PHPUnit 13's breaking changes (e.g., namespace changes, attribute-based metadata, and the new event system).
2. Verify that the project's PHP version constraint is compatible with PHPUnit 13 (which requires PHP 8.2 or newer).

TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback

@dependabot @github

dependabot Bot commented on behalf of github Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #381.

@dependabot dependabot Bot closed this Aug 5, 2026
@dependabot
dependabot Bot deleted the dependabot/composer/phpunit/phpunit-13.2.5 branch August 5, 2026 07:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file php Pull requests that update php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants