Archive
Testing
PHPUnit, static analysis, and which tests earn their place.
-
PHPStan level 6 on a codebase from 2014
Two weeks of static analysis on a seven-year-old Symfony application: 417 errors at level 0, 8,996 at level 6, one nullable return that 611 passing tests never touched, and the rule about what may enter a baseline.
-
The tests we stopped writing
I deleted 212 tests from a 912-test suite and the build halved. Notes on which tests earn their place: getter assertions and mock transcripts went, money arithmetic and timezone boundaries stayed.