Repository navigation
Conversation
The MySQL, MySQLi, PostgreSQL, SQLite and SQL Server query builder tests use a stubbed driver and need no server, but they lived in the driver directories and only ran in the driver-specific configurations, so a plain phpunit run skipped them. They are now part of the unit suite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 of Changes
Tests/{Mysql,Mysqli,Pgsql,Sqlite,Sqlsrv}/*QueryTest.phptest the driver-specific query builders against a stubbedDatabaseInterfaceand need no database, but they only ran in the driver configurations (phpunit.pgsql.xml.distetc.). A plainvendor/bin/phpunittherefore did not run them, which is how the brokenPgsqlQuery::forUpdate()/limit()went unnoticed. The five files are now listed in the unit suite ofphpunit.xml.dist: a plain run goes from 144 to 197 tests. They stay where they are, so the driver configurations still run them too.The other half of the review item (regression tests for the individual bugs) is part of the fix PRs, most of them in
AbstractDatabaseDriverTestCaseso they run for every driver.Note for #374: that PR copies the unit-suite list into
phpunit.sqlite.xml.distandphpunit.mysqli.xml.dist. Whichever is merged second should add these five files there too (and may then drop the duplicate run of the SQLite/MySQLi query test from the driver suite).Testing Instructions
vendor/bin/phpunitruns 197 tests instead of 144, all passing.Documentation Changes Required
None.
🤖 Generated with Claude Code