Finding the right testing tool for the job
summary
Four practical test categories are compared with concrete tools and tradeoffs: PHPUnit for unit and service-level tests, Behat (with Mink) for quick UI/acceptance specs, DBUnit for database integration, and selenium/ghost-inspector for end-to-end checks. A tracing tool auto-generates "characterization" tests and produces a couple hundred cases in minutes; full Selenium suites can run 5–30 hours. Recommendation: prefer service-level acceptance tests, keep a tiny UI subset to verify wiring, write unit tests for internal design and use integration tests only where real infrastructure must be exercised.
AI-written summary · about
