Skip to content

Strict and opinionated rules for PHPUnit #5

New issue

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

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

Already on GitHub? # to your account

Merged
merged 6 commits into from
Dec 27, 2017

Conversation

mhujer
Copy link
Contributor

@mhujer mhujer commented Dec 21, 2017

I've created several rules that suggest better assertions in PHPUnit tests.

I have a few more in the backlog, but I wanted to start small to see if we are on the same page (and the PR is already tooo long anyway).

I've tested the Rules on @driveto codebase and on PHPStan itself, but it would be great if you can try it on something bigger (such as @slevomat codebase ;-))

@ondrejmirtes
Copy link
Member

This is perfect! 😊 I will be able to test it on Slevomat once we upgrade to 0.9.

@ondrejmirtes ondrejmirtes merged commit 669990e into phpstan:master Dec 27, 2017
@mhujer mhujer deleted the mh-strict-rules branch December 27, 2017 14:35
@ondrejmirtes
Copy link
Member

ondrejmirtes commented Dec 28, 2017 via email

@mhujer
Copy link
Contributor Author

mhujer commented Dec 28, 2017

I've created an issue with the list of ideas for additional rules #7

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants