~/talk

Why Your Test Suite Sucks

Talkat PHP UK Conference 2015 · 2015-02-18..02-20· [testing, developer-experience]
slides:none on file

Begins with four development phases — manual, automated, test‑first, full TDD — and claims TDD pays off when tests capture behavior not implementation. Shows brittle examples in PHP unit and PHP spec: mocking queries, expecting call order, and stubs returning stubs that reveal classes with three or more hidden dependencies. Describes building a file uploader that passes unit doubles but fails in production because one real API call (finalize_upload) is missing and argues for composition over inheritance plus slow integration tests against the real cloud.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27Dont do this
  3. 3:57Not getting the benefits
  4. 4:42Different phases of testing
  5. 5:33Where do you learn to test
  6. 6:35Why move to automated testing
  7. 7:23Issue tracking system
  8. 10:01Writing the test first
  9. 11:25Design implementation first
  10. 12:11Test suites still brittle
  11. 12:39Testdriven development
  12. 14:46Mock queries
  13. 15:23Example
  14. 19:47Summary
  15. 24:05stubs returning stubs
  16. 24:38notifying users
  17. 25:51train wreck
  18. 26:54user object
  19. 27:59double or stub
  20. 29:09Validate returns
  21. 29:50The problem
  22. 30:29Double the validator
  23. 31:29Design is important
  24. 32:27People worry about writing tests
  25. 33:07What happens with TDD
  26. 33:54TDD is a way to think about your code
  27. 36:37TDD is a complicated one
  28. 37:26Testing thirdparty code
  29. 38:14Testing objects
  30. 39:13Testing framework repository
  31. 41:17Testing user repository
  32. 43:12Double repository
  33. 44:03Example of double repository
  34. 47:22Cloud API
  35. 50:17Interface
  36. 52:37Dont Test
~/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.