Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Make tests compatible with PHPUnit version 9.6.2 #395

Merged
merged 2 commits into from
Feb 27, 2023

Conversation

fredden
Copy link
Contributor

@fredden fredden commented Feb 27, 2023

Version 9.6.2 of PHPUnit deprecates passing a generator to assertNotEmpty(). These two tests (ComposerRequireCheckerTest\DependencyGuesser\DependencyGuesserTest::testGuessExtJson and ComposerRequireCheckerTest\DependencyGuesser\DependencyGuesserTest::testCoreExtensionsResolvesToPHP) trigger this deprecation warning. See the failing tests in #390 as an example. See the failing tests in #388 as another example.

Upstream documentation of this deprecation:
https://github.com/sebastianbergmann/phpunit/blob/a1b9746ec7dce023b16dd0fd2fee24455cfd2ecb/ChangeLog-9.6.md
sebastianbergmann/phpunit@9.6.1...9.6.2
sebastianbergmann/phpunit#4618

@Ocramius Ocramius self-assigned this Feb 27, 2023
@Ocramius Ocramius added enhancement dependencies Pull requests that update a dependency file labels Feb 27, 2023
@Ocramius Ocramius added this to the 4.6.0 milestone Feb 27, 2023
Copy link
Collaborator

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

Thanks @fredden!

@Ocramius Ocramius merged commit e128a32 into maglnet:4.6.x Feb 27, 2023
@fredden fredden deleted the phpunit-9.6-compat branch February 27, 2023 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants