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

[1.x] Enforce snake_case methods for PHPUnit method in Laravel preset #300

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

timacdonald
Copy link
Member

The Laravel preset should have an opinion on testsuite method casing.

There is always overhead involved working out what casing the testsuite is using. Often there can be multiple casings within a single testsuite. Even in our own ecosystem's packages, when contributions come from different people, we can see different casings within the one project.

The Laravel framework ships with snake casing, so I am proposing we stick with that and never have to waste brain cycles on this again for PHPUnit based testsuites.

Screenshot 2024-10-10 at 09 28 07

@timacdonald timacdonald changed the title [1.x] Use snake_case for PHPUnit method names [1.x] Enforce snake_case methods for PHPUnit method in Laravel preset Oct 9, 2024
@taylorotwell taylorotwell merged commit 0f732e0 into main Oct 10, 2024
6 checks passed
@taylorotwell taylorotwell deleted the phpunit-casing branch October 10, 2024 13:29
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.

3 participants