~/talk

The Absolute Beginner's Guide To Test-Driven Development

Talkat code.talks 2022 · 2022-09-15..09-16· [testing, developer-experience]
github:nealio82
slides:none on file

Shows step-by-step TDD using PHP with PHPUnit and Docker, building a shopping cart example: tests first for an empty cart, adding a product, then refusing duplicate products by throwing a cannot add multiple exception. Demonstrates a small Product value object with equality logic, refactors safely, and claims natural 100% coverage during red‑green‑refactor cycles. Covers when to write unit vs integration vs E2E tests, common smells (brittle getters, overused data providers), and practical rules for maintainable tests.

AI-written summary · about

  1. 0:00Introduction
  2. 1:44Audience testing experience
  3. 3:09TDD misconceptions
  4. 4:57Testing triangle
  5. 8:44TDD setup with PHP
  6. 10:10First shopping cart test
  7. 14:03Shopping cart behavior
  8. 16:55Adding business rules
  9. 20:44Refactoring value objects
  10. 27:09Testing mistakes and smells
  11. 33:05TDD best practices
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.