Lightning fast Symfony tests
summary
Argues that shifting effort to fast unit tests and clear interface contracts makes suites practical: builds a price calculator with ProductRepository and CurrencyConverter interfaces, stubs collaborators with PHPUnit and Prophecy, writes small unit tests and only a few integration tests to verify those contracts, then uses Doctrine/Guzzle adapters for real systems. Shows combinatorial blowup — a small method gives 8 execution paths and a controller can imply ~80 — and recounts a suite that grows from 3→10→60 minutes when tests invert the pyramid.
AI-written summary · about
