Update dependency phpunit/phpunit to v12 #37

Merged
Renovate merged 1 commits from renovate/major-php-dev into main 2025-02-08 00:11:44 +00:00
Collaborator

This PR contains the following updates:

Package Type Update Change
phpunit/phpunit (source) require-dev major ^11.5.6 -> ^12.0.0

Release Notes

sebastianbergmann/phpunit (phpunit/phpunit)

v12.0.1: PHPUnit 12.0.1

Compare Source

Fixed
  • Deprecation message for Assert::isType(), assertContainsOnly(), assertNotContainsOnly(), and containsOnly()

How to install or update PHPUnit

v12.0.0: PHPUnit 12.0.0

Compare Source

Added
  • #​5984: #[CoversClassesThatExtendClass] and #[UsesClassesThatExtendClass]
  • #​5985: #[CoversClassesThatImplementInterface] and #[UsesClassesThatImplementInterface]
  • #​6073: #[CoversNamespace] and #[UsesNamespace]
  • #​6074: #[RequiresEnvironmentVariable]
Changed
  • #​5872: The default value for shortenArraysForExportThreshold is now 10 (limit export of arrays to 10 levels) instead of 0 (do not limit export of arrays)
Deprecated
  • #​6053: Assert::isType() (was soft-deprecated in PHPUnit 11.5)
  • #​6056: assertContainsOnly() (was soft-deprecated in PHPUnit 11.5)
  • #​6056: assertNotContainsOnly() (was soft-deprecated in PHPUnit 11.5)
  • #​6060: containsOnly() (was soft-deprecated in PHPUnit 11.5)
Removed
  • #​5215: TestCase::iniSet()
  • #​5217: TestCase::setLocale()
  • #​5246: TestCase::createTestProxy()
  • #​5247: TestCase::getMockForAbstractClass()
  • #​5248: TestCase::getMockFromWsdl()
  • #​5249: TestCase::getMockForTrait()
  • #​5250: TestCase::getObjectForTrait()
  • #​5310: MockBuilder::enableAutoload() and MockBuilder::disableAutoload()
  • #​5311: MockBuilder::allowMockingUnknownTypes() and MockBuilder::disallowMockingUnknownTypes()
  • #​5312: MockBuilder::enableProxyingToOriginalMethods(), MockBuilder::disableProxyingToOriginalMethods(), and MockBuilder::setProxyTarget()
  • #​5313: MockBuilder::getMockForTrait()
  • #​5314: MockBuilder::getMockForAbstractClass()
  • #​5316: MockBuilder::enableArgumentCloning() and MockBuilder::disableArgumentCloning()
  • #​5321: MockBuilder::addMethods()
  • #​5416: Support for doubling interfaces (or classes) that have a method named method
  • #​5424: TestCase methods for creating return stub configuration objects
  • #​5473: assertStringNotMatchesFormat() and assertStringNotMatchesFormatFile()
  • #​5536: Support for configuring expectations using expects() on test stubs
  • #​5541: Support for metadata in doc-comments
  • #​5710: Support for using comma-separated values with the --group, --exclude-group, --covers, --uses, and --test-suffix CLI options
  • #​5756: Support for the restrictDeprecations attribute on the <source> element of the XML configuration file
  • #​5801: Support for targeting traits with #[CoversClass] and #[UsesClass] attributes
  • #​5978: Support for PHP 8.2

How to install or update PHPUnit


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [phpunit/phpunit](https://phpunit.de/) ([source](https://github.com/sebastianbergmann/phpunit)) | require-dev | major | `^11.5.6` -> `^12.0.0` | --- ### Release Notes <details> <summary>sebastianbergmann/phpunit (phpunit/phpunit)</summary> ### [`v12.0.1`](https://github.com/sebastianbergmann/phpunit/releases/tag/12.0.1): PHPUnit 12.0.1 [Compare Source](https://github.com/sebastianbergmann/phpunit/compare/12.0.0...12.0.1) ##### Fixed - Deprecation message for `Assert::isType()`, `assertContainsOnly()`, `assertNotContainsOnly()`, and `containsOnly()` *** [How to install or update PHPUnit](https://docs.phpunit.de/en/12.0/installation.html) ### [`v12.0.0`](https://github.com/sebastianbergmann/phpunit/releases/tag/12.0.0): PHPUnit 12.0.0 [Compare Source](https://github.com/sebastianbergmann/phpunit/compare/11.5.7...12.0.0) ##### Added - [#&#8203;5984](https://github.com/sebastianbergmann/phpunit/issues/5984): `#[CoversClassesThatExtendClass]` and `#[UsesClassesThatExtendClass]` - [#&#8203;5985](https://github.com/sebastianbergmann/phpunit/issues/5985): `#[CoversClassesThatImplementInterface]` and `#[UsesClassesThatImplementInterface]` - [#&#8203;6073](https://github.com/sebastianbergmann/phpunit/issues/6073): `#[CoversNamespace]` and `#[UsesNamespace]` - [#&#8203;6074](https://github.com/sebastianbergmann/phpunit/pull/6074): `#[RequiresEnvironmentVariable]` ##### Changed - [#&#8203;5872](https://github.com/sebastianbergmann/phpunit/issues/5872): The default value for `shortenArraysForExportThreshold` is now `10` (limit export of arrays to 10 levels) instead of `0` (do not limit export of arrays) ##### Deprecated - [#&#8203;6053](https://github.com/sebastianbergmann/phpunit/issues/6053): `Assert::isType()` (was soft-deprecated in PHPUnit 11.5) - [#&#8203;6056](https://github.com/sebastianbergmann/phpunit/issues/6056): `assertContainsOnly()` (was soft-deprecated in PHPUnit 11.5) - [#&#8203;6056](https://github.com/sebastianbergmann/phpunit/issues/6056): `assertNotContainsOnly()` (was soft-deprecated in PHPUnit 11.5) - [#&#8203;6060](https://github.com/sebastianbergmann/phpunit/issues/6060): `containsOnly()` (was soft-deprecated in PHPUnit 11.5) ##### Removed - [#&#8203;5215](https://github.com/sebastianbergmann/phpunit/issues/5215): `TestCase::iniSet()` - [#&#8203;5217](https://github.com/sebastianbergmann/phpunit/issues/5217): `TestCase::setLocale()` - [#&#8203;5246](https://github.com/sebastianbergmann/phpunit/issues/5246): `TestCase::createTestProxy()` - [#&#8203;5247](https://github.com/sebastianbergmann/phpunit/issues/5247): `TestCase::getMockForAbstractClass()` - [#&#8203;5248](https://github.com/sebastianbergmann/phpunit/issues/5248): `TestCase::getMockFromWsdl()` - [#&#8203;5249](https://github.com/sebastianbergmann/phpunit/issues/5249): `TestCase::getMockForTrait()` - [#&#8203;5250](https://github.com/sebastianbergmann/phpunit/issues/5250): `TestCase::getObjectForTrait()` - [#&#8203;5310](https://github.com/sebastianbergmann/phpunit/issues/5310): `MockBuilder::enableAutoload()` and `MockBuilder::disableAutoload()` - [#&#8203;5311](https://github.com/sebastianbergmann/phpunit/issues/5311): `MockBuilder::allowMockingUnknownTypes()` and `MockBuilder::disallowMockingUnknownTypes()` - [#&#8203;5312](https://github.com/sebastianbergmann/phpunit/issues/5312): `MockBuilder::enableProxyingToOriginalMethods()`, `MockBuilder::disableProxyingToOriginalMethods()`, and `MockBuilder::setProxyTarget()` - [#&#8203;5313](https://github.com/sebastianbergmann/phpunit/issues/5313): `MockBuilder::getMockForTrait()` - [#&#8203;5314](https://github.com/sebastianbergmann/phpunit/issues/5314): `MockBuilder::getMockForAbstractClass()` - [#&#8203;5316](https://github.com/sebastianbergmann/phpunit/issues/5316): `MockBuilder::enableArgumentCloning()` and `MockBuilder::disableArgumentCloning()` - [#&#8203;5321](https://github.com/sebastianbergmann/phpunit/issues/5321): `MockBuilder::addMethods()` - [#&#8203;5416](https://github.com/sebastianbergmann/phpunit/issues/5416): Support for doubling interfaces (or classes) that have a method named `method` - [#&#8203;5424](https://github.com/sebastianbergmann/phpunit/issues/5424): `TestCase` methods for creating return stub configuration objects - [#&#8203;5473](https://github.com/sebastianbergmann/phpunit/issues/5473): `assertStringNotMatchesFormat()` and `assertStringNotMatchesFormatFile()` - [#&#8203;5536](https://github.com/sebastianbergmann/phpunit/issues/5536): Support for configuring expectations using `expects()` on test stubs - [#&#8203;5541](https://github.com/sebastianbergmann/phpunit/issues/5541): Support for metadata in doc-comments - [#&#8203;5710](https://github.com/sebastianbergmann/phpunit/issues/5710): Support for using comma-separated values with the `--group`, `--exclude-group`, `--covers`, `--uses`, and `--test-suffix` CLI options - [#&#8203;5756](https://github.com/sebastianbergmann/phpunit/issues/5756): Support for the `restrictDeprecations` attribute on the `<source>` element of the XML configuration file - [#&#8203;5801](https://github.com/sebastianbergmann/phpunit/issues/5801): Support for targeting traits with `#[CoversClass]` and `#[UsesClass]` attributes - [#&#8203;5978](https://github.com/sebastianbergmann/phpunit/issues/5978): Support for PHP 8.2 *** [How to install or update PHPUnit](https://docs.phpunit.de/en/12.0/installation.html) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xODEuNiIsInVwZGF0ZWRJblZlciI6IjM3LjE4MS42IiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Renovate added 1 commit 2025-02-08 00:03:18 +00:00
Update dependency phpunit/phpunit to v12
Some checks failed
renovate/artifacts Artifact file update failure
rector / Rector (pull_request) Failing after 53s
Apply PHP CS Fixer / php-cs-fixer (push) Successful in 12s
CI / build-test (push) Failing after 1m0s
rector / Rector (push) Failing after 58s
f762a5a5a1
Renovate scheduled this pull request to auto merge when all checks succeed 2025-02-08 00:03:19 +00:00
Author
Collaborator

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: composer.lock
Command failed: composer update phpunit/phpunit:12.0.1 --with-dependencies --ignore-platform-req='ext-*' --ignore-platform-req='lib-*' --no-ansi --no-interaction --no-scripts --no-autoloader --no-plugins
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires phpunit/phpunit ^12.0.0 -> satisfiable by phpunit/phpunit[12.0.1].
    - phpunit/phpunit 12.0.1 requires sebastian/diff ^7.0.0 -> found sebastian/diff[7.0.0] but these were not loaded, likely because it conflicts with another require.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

### ⚠ Artifact update problem Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens: - any of the package files in this branch needs updating, or - the branch becomes conflicted, or - you click the rebase/retry checkbox if found above, or - you rename this PR's title to start with "rebase!" to trigger it manually The artifact failure details are included below: ##### File name: composer.lock ``` Command failed: composer update phpunit/phpunit:12.0.1 --with-dependencies --ignore-platform-req='ext-*' --ignore-platform-req='lib-*' --no-ansi --no-interaction --no-scripts --no-autoloader --no-plugins Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires phpunit/phpunit ^12.0.0 -> satisfiable by phpunit/phpunit[12.0.1]. - phpunit/phpunit 12.0.1 requires sebastian/diff ^7.0.0 -> found sebastian/diff[7.0.0] but these were not loaded, likely because it conflicts with another require. Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. ```
Renovate merged commit f762a5a5a1 into main 2025-02-08 00:11:44 +00:00
Author
Collaborator

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 12.x releases. But if you manually upgrade to 12.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

### Renovate Ignore Notification Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for *any* future `12.x` releases. But if you manually upgrade to `12.x` then Renovate will re-enable `minor` and `patch` updates automatically. If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: camelia-studio/Kumora#37
No description provided.