Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update dependency phpunit/phpunit to v12 #591

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 17, 2025

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

Release notes

Sourced from phpunit/phpunit's releases.

PHPUnit 12.0.2

Changed

  • Updated dependencies for PHAR distribution

How to install or update PHPUnit

Changelog

Sourced from phpunit/phpunit's changelog.

[12.0.2] - 2025-02-08

Changed

  • Updated dependencies for PHAR distribution

[12.0.1] - 2025-02-07

Fixed

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

[12.0.0] - 2025-02-07

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

... (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.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/12.0.2/ChangeLog-12.0.md)
- [Commits](sebastianbergmann/phpunit@11.3.6...12.0.2)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
...

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 Feb 17, 2025
@Slamdunk Slamdunk changed the title Update phpunit/phpunit requirement from ^11.3.6 to ^11.3.6 || ^12.0.0 Update dependency phpunit/phpunit to v12 Feb 17, 2025
Copy link

codecov bot commented Feb 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.33%. Comparing base (d28379e) to head (5f5679d).
Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #591      +/-   ##
============================================
- Coverage     95.65%   95.33%   -0.32%     
  Complexity      365      365              
============================================
  Files            45       45              
  Lines           944      944              
============================================
- Hits            903      900       -3     
- Misses           41       44       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Slamdunk Slamdunk merged commit 7043c4f into master Feb 17, 2025
6 of 7 checks passed
@Slamdunk Slamdunk deleted the dependabot/composer/phpunit/phpunit-tw-11.3.6or-tw-12.0.0 branch February 17, 2025 14:22
# for free to join this conversation on GitHub. Already have an account? # to comment
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.

1 participant