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

Support PHPUnit 11 #48

Merged
merged 1 commit into from
Feb 2, 2024
Merged

Support PHPUnit 11 #48

merged 1 commit into from
Feb 2, 2024

Conversation

W0rma
Copy link
Contributor

@W0rma W0rma commented Feb 2, 2024

No description provided.

src/Stub.php Outdated
Comment on lines 419 to 420
if (version_compare(PHPUnitVersion::series(), '11', '>=') && !is_bool($args[1])) {
array_splice($args, 1, 0, [true, true]);
Copy link

Choose a reason for hiding this comment

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

Do you have a reference to the updated mock call in PHPUnit that requires this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Generator::testDouble() does now have an additional parameter
@Naktibalda Naktibalda merged commit 4fcad2c into Codeception:master Feb 2, 2024
4 checks passed
@W0rma W0rma deleted the phpunit11 branch February 3, 2024 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants