Skip to content

Upgrade PHPUnit configuration to version 10#37

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

Upgrade PHPUnit configuration to version 10#37
sylfabre merged 3 commits intomainfrom
phpunit_10

Conversation

@sylfabre
Copy link
Copy Markdown
Contributor

Summary

  • Updates phpunit.xml.dist to use PHPUnit 10 schema
  • Moves source directory configuration from <coverage> to <source> (PHPUnit 10 format)
  • Removes deprecated processUncoveredFiles attribute
  • Fixes array_map(__METHOD__, ...) to use first-class callable syntax $this->formatValue(...) (fixes phpstan error)
  • Adds setStreetName() to test Address entity so PHPStan recognizes the string type is reachable
  • Makes providerFormatValueAsString data provider static (PHPUnit 10 requirement via Rector)

Test plan

  • All PHPUnit tests pass with no deprecation warnings
  • phpcs passes
  • phpstan passes
  • rector --dry-run passes

🤖 Generated with Claude Code

sylfabre and others added 3 commits March 20, 2026 13:09
- Fix array_map usage with first-class callable syntax
- Add setter to Address test entity to fix phpstan unused type warning
- Make data provider method static (Rector fix)

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

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

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

@sylfabre sylfabre merged commit 14aa3b6 into main Mar 22, 2026
5 of 6 checks passed
@sylfabre sylfabre deleted the phpunit_10 branch March 22, 2026 09:05
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