Bump PHP Unit to ^12 version#29
Bump PHP Unit to ^12 version#29MekDrop merged 1 commit intoimponeer:mainfrom MekDrop:upgrade-phpunit
Conversation
WalkthroughThe changes update the PHPUnit version constraint in the development dependencies and migrate test classes to use PHPUnit's attribute-based data providers instead of docblock annotations. Data provider methods in test classes are now static, and relevant import statements for attributes are added. No changes were made to test logic or public APIs. Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🧰 Additional context used🧬 Code Graph Analysis (1)tests/CriteriaCompoTest.php (1)
🔇 Additional comments (11)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Pull Request Overview
This PR upgrades the project’s PHPUnit dependency from ^9.5 to ^12 and updates existing test classes to use the new Attributes-based data providers.
- Bumps
phpunit/phpunitincomposer.jsonto^12. - Imports and applies
#[DataProvider]attributes instead of@dataProviderannotations. - Marks data provider methods as
staticto satisfy PHPUnit 12 requirements.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/CriteriaItemTest.php | Swapped @dataProvider for #[DataProvider], made providers static, and imported the attribute. |
| tests/CriteriaCompoTest.php | Same updates as above: attributes, static providers, and import addition. |
| composer.json | Moved and bumped the require-dev block to PHPUnit ^12. |
Comments suppressed due to low confidence (2)
composer.json:29
- [nitpick] The
require-devblock was moved belowscripts. Consider keepingrequire-devbeforescriptsto maintain consistency with the previous structure and reduce noise in future diffs.
"scripts": {
tests/CriteriaItemTest.php:25
- [nitpick] After removing the
@dataProviderannotation, there’s an extra blank line in the docblock. Consider cleaning up leftover blank lines to keep docblocks tidy.
final public static function provideComparisonOperators(): array
Summary by CodeRabbit
Chores
Tests