Skip to content

Upgrade PHPUnit configuration to version 10#31

Merged
sylfabre merged 5 commits intomainfrom
phpunit_10
Mar 22, 2026
Merged

Upgrade PHPUnit configuration to version 10#31
sylfabre merged 5 commits intomainfrom
phpunit_10

Conversation

@sylfabre
Copy link
Contributor

Summary

  • Updates phpunit.xml.dist to use PHPUnit 10 schema
  • Replaces deprecated <listeners> / SymfonyTestsListener with <extensions> / SymfonyExtension (PHPUnit 10 compatible)
  • Removes deprecated processUncoveredFiles attribute and obsolete Symfony env vars
  • Moves source directory configuration to <source> element

Test plan

  • All 41 PHPUnit tests pass with no warnings or deprecations
  • phpcs passes
  • phpstan passes
  • rector --dry-run passes

🤖 Generated with Claude Code

sylfabre and others added 5 commits March 20, 2026 13:20
- Replace deprecated SymfonyTestsListener with SymfonyExtension
- Update schema to PHPUnit 10.5
- Remove deprecated processUncoveredFiles attribute
- Remove obsolete SYMFONY_PHPUNIT_VERSION and SYMFONY_PHPUNIT_REQUIRE env vars

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
SymfonyExtension was introduced in symfony/phpunit-bridge 7.2.
The previous constraint (^7.0.1) allowed 7.0.1 which lacks this class.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Previously set via simple-phpunit env, now set in phpunit.xml.dist.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fails only on deprecations from our own code, not from dependencies.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sonarqubecloud
Copy link

@sylfabre sylfabre merged commit 2562be0 into main Mar 22, 2026
6 checks passed
@sylfabre sylfabre deleted the phpunit_10 branch March 22, 2026 09:07
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.

1 participant