Behat Best Practices with Symfony
summary
Shows how Behat turns concrete examples (three scenarios for a course with class size 2–3) into fast, layered tests: first driving domain objects (Course, ClassSize, Learner) to force design and custom exceptions for max capacity, then refactoring to a service layer with fake repositories, and finally a tiny set of UI checks via BrowserKit or full-browser runs. Uses Symfony2Extension to inject services, Mink to swap drivers, and optional headless Chrome via Selenium for rare end-to-end checks.
AI-written summary · about
