Getting started with test-driven development with PHPUnit
summary
Hands-on workshop that teaches using PHPUnit on PHP 7 with composer and an IDE to write real unit tests, run them red→green, and iterate fast. Shows concrete conventions: subject-under-test as first arg, assert patterns, setUp fixtures and live templates to scaffold tests, and asserting exceptions and return values. Demonstrates starting tests before code, refactoring with safety nets, and small domain examples (coffee model, cart) that run green locally.
AI-written summary · about
chapters (5)
- 0:00Introduction to TDD
- 13:13What is test-driven development
- 28:03Setting up PHPUnit tests
- 36:11Writing your first test
- 42:19Q&A and closing








