Update phpunit/phpunit requirement from ^10.5.15 to ^12.5.7 #49

Merged
RealZone22 merged 1 commit from dependabot/composer/phpunit/phpunit-tw-12.5.7 into main 2026-01-30 20:15:01 +01:00
RealZone22 commented 2026-01-26 23:34:47 +01:00 (Migrated from git.cyanfox.de)

Updates the requirements on phpunit/phpunit to permit the latest version.

Release notes

Sourced from phpunit/phpunit's releases.

PHPUnit 12.5.7

Fixed

  • #6362: Manually instantiated test doubles are broken since PHPUnit 11.2
  • #6470: Infinite recursion in Count::getCountOf() for unusal implementations of Iterator or IteratorAggregate

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

Keep up to date with PHPUnit:

Changelog

Sourced from phpunit/phpunit's changelog.

[12.5.7] - 2026-01-24

Fixed

  • #6362: Manually instantiated test doubles are broken since PHPUnit 11.2
  • #6470: Infinite recursion in Count::getCountOf() for unusal implementations of Iterator or IteratorAggregate

[12.5.6] - 2026-01-16

Changed

[12.5.5] - 2026-01-15

Changed

  • PHPUnit\Framework\MockObject exceptions are now subtypes of PHPUnit\Exception

Deprecated

  • #6461: any() matcher (soft deprecation)

Fixed

  • #6470: Mocking a class with a property hook setter accepting more types than the property results in a fatal error

[12.5.4] - 2025-12-15

Changed

  • The #[AllowMockObjectsWithoutExpectations] attribute can now be used on the method level

Fixed

  • #6446: Test runner crashes with Timer::start() has to be called before Timer::stop()

[12.5.3] - 2025-12-11

Changed

  • The message emitted when a test method creates a mock object but does not configure any expectations for it has been improved

[12.5.2] - 2025-12-08

Added

  • Attribute #[AllowMockObjectsWithoutExpectations] for excluding tests from the check that emits the notice for test methods that create a mock object but do not configure an expectation for it

[12.5.1] - 2025-12-06

... (truncated)

Commits

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 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)
Updates the requirements on [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) to permit the latest version. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/sebastianbergmann/phpunit/releases">phpunit/phpunit's releases</a>.</em></p> <blockquote> <h2>PHPUnit 12.5.7</h2> <h3>Fixed</h3> <ul> <li><a href="https://redirect.github.com/sebastianbergmann/phpunit/issues/6362">#6362</a>: Manually instantiated test doubles are broken since PHPUnit 11.2</li> <li><a href="https://redirect.github.com/sebastianbergmann/phpunit/issues/6470">#6470</a>: Infinite recursion in <code>Count::getCountOf()</code> for unusal implementations of <code>Iterator</code> or <code>IteratorAggregate</code></li> </ul> <hr /> <p>Learn how to install or update PHPUnit 12.5 in the <a href="https://docs.phpunit.de/en/12.5/installation.html">documentation</a>.</p> <h4>Keep up to date with PHPUnit:</h4> <ul> <li>You can follow <a href="https://phpc.social/@phpunit"><code>@​phpunit@phpc.social</code></a> to stay up to date with PHPUnit's development.</li> <li>You can subscribe to the <a href="https://phpunit.de/newsletter">PHPUnit Updates</a> newsletter to receive updates about and tips for PHPUnit.</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/sebastianbergmann/phpunit/blob/12.5.7/ChangeLog-12.5.md">phpunit/phpunit's changelog</a>.</em></p> <blockquote> <h2>[12.5.7] - 2026-01-24</h2> <h3>Fixed</h3> <ul> <li><a href="https://redirect.github.com/sebastianbergmann/phpunit/issues/6362">#6362</a>: Manually instantiated test doubles are broken since PHPUnit 11.2</li> <li><a href="https://redirect.github.com/sebastianbergmann/phpunit/issues/6470">#6470</a>: Infinite recursion in <code>Count::getCountOf()</code> for unusal implementations of <code>Iterator</code> or <code>IteratorAggregate</code></li> </ul> <h2>[12.5.6] - 2026-01-16</h2> <h3>Changed</h3> <ul> <li>Reverted a change that caused a <a href="https://github.com/php/php-src/actions/runs/21052584327/job/60542023395#step:14:3729">build failure</a> for the <a href="https://phpunit.expert/articles/how-php-and-its-ecosystem-test-each-other.html?ref=github">PHP project's nightly community job</a></li> </ul> <h2>[12.5.5] - 2026-01-15</h2> <h3>Changed</h3> <ul> <li><code>PHPUnit\Framework\MockObject</code> exceptions are now subtypes of <code>PHPUnit\Exception</code></li> </ul> <h3>Deprecated</h3> <ul> <li><a href="https://redirect.github.com/sebastianbergmann/phpunit/issues/6461">#6461</a>: <code>any()</code> matcher (soft deprecation)</li> </ul> <h3>Fixed</h3> <ul> <li><a href="https://redirect.github.com/sebastianbergmann/phpunit/issues/6470">#6470</a>: Mocking a class with a property hook setter accepting more types than the property results in a fatal error</li> </ul> <h2>[12.5.4] - 2025-12-15</h2> <h3>Changed</h3> <ul> <li>The <code>#[AllowMockObjectsWithoutExpectations]</code> attribute can now be used on the method level</li> </ul> <h3>Fixed</h3> <ul> <li><a href="https://redirect.github.com/sebastianbergmann/phpunit/issues/6446">#6446</a>: Test runner crashes with <code>Timer::start() has to be called before Timer::stop()</code></li> </ul> <h2>[12.5.3] - 2025-12-11</h2> <h3>Changed</h3> <ul> <li>The message emitted when a test method creates a mock object but does not configure any expectations for it has been improved</li> </ul> <h2>[12.5.2] - 2025-12-08</h2> <h3>Added</h3> <ul> <li>Attribute <code>#[AllowMockObjectsWithoutExpectations]</code> for excluding tests from the check that emits the notice for test methods that create a mock object but do not configure an expectation for it</li> </ul> <h2>[12.5.1] - 2025-12-06</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/sebastianbergmann/phpunit/commit/79dee3d2685b80518e94b9ea741b3f822b213a5e"><code>79dee3d</code></a> Prepare release</li> <li><a href="https://github.com/sebastianbergmann/phpunit/commit/ead5e46e28c9661588b0814ab4fdbed6d0166da4"><code>ead5e46</code></a> Merge branch '11.5' into 12.5</li> <li><a href="https://github.com/sebastianbergmann/phpunit/commit/4f1750675ba411dd6c2d5fa8a3cca07f6742020e"><code>4f17506</code></a> Prepare release</li> <li><a href="https://github.com/sebastianbergmann/phpunit/commit/5df9fe0cfa3f14bab916ab0134cac69e4b435e1b"><code>5df9fe0</code></a> Merge branch '10.5' into 11.5</li> <li><a href="https://github.com/sebastianbergmann/phpunit/commit/bd265b671a63b87e85a8155f885b6fbb41ee505b"><code>bd265b6</code></a> Prepare release</li> <li><a href="https://github.com/sebastianbergmann/phpunit/commit/e520258cf306348f6c24baa275cf837354d9a566"><code>e520258</code></a> Merge branch '9.6' into 10.5</li> <li><a href="https://github.com/sebastianbergmann/phpunit/commit/492ee10a8369a1c1ac390a3b46e0c846e384c5a4"><code>492ee10</code></a> Prepare release</li> <li><a href="https://github.com/sebastianbergmann/phpunit/commit/81edce2f5796507927109df4316e38ce1d02b031"><code>81edce2</code></a> Merge branch '8.5' into 9.6</li> <li><a href="https://github.com/sebastianbergmann/phpunit/commit/b4f79fcb193acf1ac679131de4c5112a95624e08"><code>b4f79fc</code></a> Fix</li> <li><a href="https://github.com/sebastianbergmann/phpunit/commit/e4eee30004883338a11ef8f3da87e5e3bf02a30c"><code>e4eee30</code></a> Prepare release</li> <li>Additional commits viewable in <a href="https://github.com/sebastianbergmann/phpunit/compare/10.5.15...12.5.7">compare view</a></li> </ul> </details> <br /> 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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 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) </details>
RealZone22 commented 2026-01-26 23:34:47 +01:00 (Migrated from git.cyanfox.de)

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

### Labels The following labels could not be found: `dependencies`. Please create it before Dependabot can add it to a pull request. Please fix the above issues or remove invalid values from `dependabot.yml`.
RealZone22 commented 2026-01-26 23:34:49 +01:00 (Migrated from git.cyanfox.de)

mentioned in merge request !21

mentioned in merge request !21
RealZone22 commented 2026-01-30 20:15:01 +01:00 (Migrated from git.cyanfox.de)

Merged by: RealZone22 at 2026-01-30 19:15:01 UTC

*Merged by: RealZone22 at 2026-01-30 19:15:01 UTC*
RealZone22 (Migrated from git.cyanfox.de) closed this pull request 2026-01-30 20:15:01 +01:00
RealZone22 (Migrated from git.cyanfox.de) merged commit into main 2026-01-30 20:15:01 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
RealZone22/PenguTables!49
No description provided.