Skip to content

refactor: respecter les règles d'architecture (CONV-03, ARCH-03) - #11

Merged
ogorzalka merged 1 commit into
mainfrom
fix/arch-rules
Nov 4, 2026
Merged

ogorzalka merged 1 commit into
mainfrom
fix/arch-rules

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

Pourquoi

tests/Arch.php n'était dans aucune suite de phpunit.xml.dist : il échouait sans que la CI le voie. Le gate « Tests and architecture » du harness va l'exécuter.

Changements

  • CONV-03 : WpCliUnavailable devient WpCliUnavailableException (jamais publiée dans un tag).
  • ARCH-03 : WpCliService dépend du nouveau contrat de domaine WpCliAdapterInterface (implémenté par WpCliAdapter) au lieu de l'adaptateur concret ; passer un WpCliAdapter continue de fonctionner.
  • Suite Architecture ajoutée à phpunit.xml.dist ; CHANGELOG mis à jour.

Aucun changement de comportement ni de require.

Vérification

Pest complet (46 tests), tests/Arch.php (8/8), Pint, PHPStan : verts.

Rename WpCliUnavailable to WpCliUnavailableException and make WpCliService depend on the new WpCliAdapterInterface contract. Run tests/Arch.php in an Architecture test suite.
@ogorzalka
ogorzalka merged commit 5cd8cb1 into main Nov 4, 2026
15 checks passed
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