⬆️ Upgrade PHPUnit to 12 & test Symfony 7.4/8.1 in CI - #27
Merged
Merged
Conversation
- bump phpunit/phpunit to ^12.0 - migrate phpunit.xml.dist to the 12.x schema (source, extensions, cacheDirectory) - replace the removed SymfonyTestsListener with SymfonyExtension - use stubs instead of unconfigured mocks in ModalTest to clear PHPUnit notices - normalize composer.json version constraints
simple-phpunit from the bridge is incompatible with PHPUnit 12, so run vendor/bin/phpunit directly across a PHP highest/lowest/dev matrix.
The Enabel/CI reusable workflows repository is archived, so run these checks locally with checkout@v5 and the project's pinned tools.
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.
Contexte
Après un
composer update, aucune dépréciation runtime n'était remontée (tests verts, PHPStan clean). Le seul point mort restant était PHPUnit 9.6, en fin de vie et incompatible à terme avec PHP 8.4.Changements
⬆️ Migration PHPUnit 9.6 → 12
phpunit/phpunitbumpé en^12.0phpunit.xml.distmigré au schéma 12.x :<source>,<extensions>,cacheDirectorySymfonyTestsListener(supprimé) parSymfonyExtensionconvertDeprecationsToExceptions(supprimé dès PHPUnit 10)ModalTest: stubs au lieu de mocks non configurés → plus aucune PHPUnit noticecomposer.json👷 CI : test d'installation multi-Symfony
Nouveau job matrice qui vérifie l'installation et les tests sur :
via
symfony/flex+SYMFONY_REQUIRE.Validation locale
Note
Aucune release nécessaire : rien dans
src/ne change, uniquement l'outillage de test et la CI.