~/talk

Test to Break Principles

Talkat PHP UK Conference 2019 · 2019-02-20..02-22· [testing, php]

Live coding demo shows TDD moving from “test to work” to test to break with concrete code: an email validator built by iterating tests, simple regex, PHPUnit asserts, then adding exception checks so orders with blue color or three or five wheels throw errors. Three failing tests become green after guarding logic, demonstrating the actual tools (PHPUnit, annotations), the surprising bugs found, and how tests force code that only works one way.

AI-written summary · about

  1. 0:00Start
  2. 1:18Hit the Tree?!
  3. 3:463 Types of Test
  4. 6:54Does the system work as expected with standard inputs?
  5. 19:58The Working Software Myth
  6. 20:56Trabant 1957
  7. 22:13Reliant Robin 1973
  8. 23:53Good software functions well and is bug free.
  9. 31:43Complexity is standard
  10. 32:40Code Example
~/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.