PHP 8.3 + Mago QA toolchain + Infection + Result test coverage - #40
Merged
Merged
Conversation
… coverage php-db/phpdb 0.6.x added getQueryResult() to Driver\ResultInterface, which Sqlite already satisfies for free via the shared core Pdo\Result class (no sqlite-owned Result class exists). Ports the core's exhaustive Pdo\Result unit test suite to cover it, matching the coverage mysql/pgsql carry for their own Result classes. Also replaces laminas-coding-standard/phpstan with the shared php-db/phpdb-qa-tools Mago toolchain, mirroring phpdb-qa-analysis-sql: mago.toml extending the shared base, the qa-tools phpunit.xml.dist template, mago-based composer scripts, and the reusable CI workflow. Pre-existing lint/analyzer findings in untouched code are captured in lint-baseline.toml/analyzer-baseline.toml rather than fixed here.
Signed-off-by: Simon Mundy <46739456+simon-mundy@users.noreply.github.com>
- Use setSpecification() in SelectDecorator instead of direct array write - Ensure Source::loadSchemaData always assigns list<string> to schemas - Add native type to AdapterPlatform::$resource
- Require infection/infection ^0.34.1 and allow its composer plugin - Add infection.json5.dist mirroring php-db/phpdb, using mago as static analysis tool - Add mutation-test composer script and enable the CI mutation job at 80% MSI - Fix invalid CoversMethod target in DriverTest that failed the coverage run - Assert the full factories map in ConfigProviderTest to kill an escaped mutant
…e entries - Use #[Test] attributes and static:: assertions so the new factories test does not surface lint warnings beyond the baseline count - Regenerate lint-baseline.toml to drop entries no longer present
# Conflicts: # composer.lock
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.
Re-targets #39 at
0.3.x. It was merged into0.2.xby mistake; the PHP 8.3 minimum is a breaking change and belongs in 0.3.0, not a 0.2.1 patch.Summary
Pdo\Resultclass, including the newgetQueryResult()method.git-blame-ignore-revssogit blamestays usefulPre-existing lint/analyzer findings in untouched code are baselined, not fixed here.
Includes a merge of
0.3.xto pick up the webmozart/assert 1.x support from #38; the only conflict wascomposer.lock, resolved by re-locking webmozart/assert.Test plan
composer testandcomposer test-integration(116 tests)mago format --check,mago lint,mago analyzeall cleancomposer mutation-testat 100% MSI🤖 Generated with Claude Code
https://claude.ai/code/session_01NmnnKBjnrHuCcyRCx4tj1V