Skip to content

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

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.

2 participants