Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor des tests unitaires avec PHPUnit #1659

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

Mopolo
Copy link
Contributor

@Mopolo Mopolo commented Mar 1, 2025

J'en parle depuis un moment et j'ai enfin pris le temps de faire la conversion des tests.

PHPUnit est supporté jusqu'à la version 8 donc on a le temps de passer aux suivantes (la v10 a besoin de PHP 8.1).

Pourquoi ce changement ?

  • c'est beaucoup plus utilisé
  • c'est maintenu (la dernière release sur atoum date de 2023)
  • c'est un peu plus rapide (~90ms vs ~1s)
  • on va pouvoir lancer PHPStan sur les tests

À long terme, et avec tout ce qu'on fait en ce moment sur les majs de SF et PHP je pense que ce sera plus maintenable. Et ça rend la contribution plus accessible (à mon avis).

@Mopolo Mopolo self-assigned this Mar 1, 2025
@Mopolo Mopolo marked this pull request as ready for review March 1, 2025 22:55
@Mopolo Mopolo requested review from stakovicz and agallou March 1, 2025 22:55
Copy link
Contributor

@stakovicz stakovicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bravo ! Il faut négocier maintenant ;-)

@Mopolo Mopolo force-pushed the refactor-unit-tests-with-phpunit branch from a651454 to 51ab36f Compare March 2, 2025 18:12
@Mopolo Mopolo force-pushed the refactor-unit-tests-with-phpunit branch from 51ab36f to eeb30ae Compare March 4, 2025 16:40
@agallou agallou merged commit f69d515 into afup:master Mar 5, 2025
4 checks passed
@Mopolo Mopolo deleted the refactor-unit-tests-with-phpunit branch March 5, 2025 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants