My Symfony functional testing toolbox
summary
Claims a 46 minute functional test suite drops to about 6 minutes by running PHPUnit in parallel and adding isolation tools, reports running ~1,500 tests in that time. Uses ParaUnit plus a transaction wrapper strategy replaced by Doctrine Test Bundle to avoid reloading fixtures. Adds static analysis with PHPStan and Psalm, validator-on-preflush, fixture builders and Faker data, warns about truncate commits and container instance mismatches, and says the setup works and is fast and reliable.
AI-written summary · about
chapters (4)
related talks
01h 03mOptimizing Your Test Suite
24mHow to build a test suite from scratch
01h 00mStandardization, the Symfony Way
49mDockerize your unit tests for faster feedback
01h 05mLightning fast tests
48mSmokeTests
37mMutation testing: better code by making bugs
34mTesting APIs written in PHP using the Behat feature testing tool
