ikvasnica / phpstan-clean-test Goto Github PK
View Code? Open in Web Editor NEWHighly opinionated and strict rules for test cases for the PHPStan static analysis tool.
License: MIT License
Highly opinionated and strict rules for test cases for the PHPStan static analysis tool.
License: MIT License
Hi,
first of all - great job!
I don't understand why setup
method is wrong.
If I have a test cases that works for example on Cart
and Extended Warranty
, while I'm testing a cart, and I want to have the Extended Warranty
setup for each test same... Why not use the setup
method where $this->extendedWarranty
is filled in? Of course for each test case by the same setup.
I find useful to compare value objects by assertEquals
because it is what I need. What is wrong with this approach?
Hi, I've encountered this repository recently and it looks interesting ๐ . However, PHPStan v0.*
is pretty outdated, so I'm asking for the v1 support ๐ . We then might use this plugin in PHPCSFixer repo ๐.
Hi, I'm having a problem with the mentioned rule, since not all used assertions are coming from Phpunit Assert...
For example in functional tests in symfony, when using the WebTestCase, and for example the assertion assertResponseStatusCodeSame().
Maybe your Rule should check wether or not the method exists on Assert?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.