Fix CI, update PHP support and MongoDB driver#18
Merged
TavoNiievez merged 6 commits intoCodeception:masterfrom Jan 9, 2026
Merged
Fix CI, update PHP support and MongoDB driver#18TavoNiievez merged 6 commits intoCodeception:masterfrom
TavoNiievez merged 6 commits intoCodeception:masterfrom
Conversation
Closed
W0rma
reviewed
Dec 22, 2025
| { | ||
| $cmd = sprintf( | ||
| 'mongo %s %s%s', | ||
| 'mongosh %s %s%s', |
Contributor
There was a problem hiding this comment.
In #14 (comment) backwards-compatible solutions were discussed.
@pbromb Do you think that adding a new dump method for mongosh would be possible. It sounds easy to implement at first sight.
This way this PR could be part of a minor release since it wouldn't break BC.
Contributor
Author
There was a problem hiding this comment.
@W0rma I've added automatic detection of whether mongosh or the legacy mongo shell is available in the environment.
With this approach, no existing behavior is broken, so the change should be safe to include in a minor release without introducing BC breaks.
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request modernizes the MongoDB module and fixes CI issues caused by recent
changes in PHPUnit, PHP versions, and MongoDB tooling. It also adds support for the
latest major version of the MongoDB PHP driver.
Changes
PHPUnit compatibility
PHPUnit\Framework\TestCase::getGroups(), which wasremoved in recent PHPUnit versions.
MongoDB database tools
mongodb-database-toolsenvironment.PHP version support
MongoDB PHP driver
mongodb/mongodbv2.x.Motivation
The goal of this change is to:
Checklist