Skip to content

Upgrade PHPUnit configuration to version 10#75

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

Upgrade PHPUnit configuration to version 10#75
sylfabre merged 7 commits intomainfrom
phpunit_10

Conversation

@sylfabre
Copy link
Contributor

Summary

  • Updates phpunit.xml.dist to use PHPUnit 10 schema
  • Removes deprecated processUncoveredFiles attribute and obsolete Symfony env vars
  • Moves source directory configuration to <source> element
  • Fixes EntityValidatorTest and PostalValidatorTest: PHPUnit 10 now errors on empty data providers (previously they were silently skipped in PHPUnit 9). Adds testValidValues/testInvalidValues overrides that call markTestSkipped() in these classes.

Test plan

  • 245 tests pass, 4 skipped (as expected for validators without standalone test data)
  • phpcs passes
  • phpstan passes
  • rector --dry-run passes

🤖 Generated with Claude Code

sylfabre and others added 6 commits March 20, 2026 13:30
- Update phpunit.xml.dist schema to PHPUnit 10.5
- Remove deprecated processUncoveredFiles attribute
- Remove obsolete SYMFONY_PHPUNIT_VERSION env vars
- Override testValidValues/testInvalidValues in EntityValidatorTest and
  PostalValidatorTest to skip when data providers are empty (PHPUnit 10
  now errors on empty data providers instead of silently skipping)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…h phpunit

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add phpcs:ignore for PHP 8.3 typed constants in BelgianEnterpriseNumber
- Fix line length in EntityValidatorTest and PostalValidatorTest
- Add docblocks to FrenchSiren/FrenchSiret constructors for PHPStan
- Remove now-fixed entries from phpstan baseline

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>
PHP_CodeSniffer 3.9+ handles PHP 8.3 typed constants correctly.

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

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

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

@sylfabre sylfabre merged commit 956fef3 into main Mar 22, 2026
4 of 6 checks passed
@sylfabre sylfabre deleted the phpunit_10 branch March 22, 2026 09:51
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