★ wanayoo — archive 1999 https://github.com/phpstan/phpstan-phpunit/pull/5Nouvelle recherche | Portail wanayoo
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

Strict and opinionated rules for PHPUnit #5

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

@ondrejmirtes ondrejmirtes commented Dec 27, 2017

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
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@mhujer mhujer deleted the mhujer:mh-strict-rules branch Dec 27, 2017
@ondrejmirtes
Copy link
Member

@ondrejmirtes ondrejmirtes commented Dec 28, 2017

@mhujer
Copy link
Contributor Author

@mhujer 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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.