~/talk

Lightning fast Symfony tests

Talkat SymfonyCon Paris 2015 · 2015-12-03..12-05· [php]
slides:none on file

Argues that shifting effort to fast unit tests and clear interface contracts makes suites practical: builds a price calculator with ProductRepository and CurrencyConverter interfaces, stubs collaborators with PHPUnit and Prophecy, writes small unit tests and only a few integration tests to verify those contracts, then uses Doctrine/Guzzle adapters for real systems. Shows combinatorial blowup — a small method gives 8 execution paths and a controller can imply ~80 — and recounts a suite that grows from 3→10→60 minutes when tests invert the pyramid.

AI-written summary · about

  1. 0:00Introduction and speaker
  2. 1:29Unit vs integration tests
  3. 3:58Problems with slow tests
  4. 8:16Test pyramid explained
  5. 11:30Price calculator example
  6. 19:41Unit testing the calculator
  7. 23:13Contract verification
  8. 27:07Integration test boundaries
  9. 28:53Summary and approach
  10. 29:29Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.