~/talk

The Myth of Untestable Code

Talkat ScotlandPHP 2017 · on Saturday, 2017-11-04· [testing]
slides:none on file

Contrary to “untestable” labels, legacy PHP code at mattify gets safety by running end-to-end tests that feed idml inputs and assert produced FO (Apache FOP) XML matches known-good files; Xdebug traces plus a legacy-to-data-provider step replay real production calls for characterization tests. PHPMD flags an N‑path complexity threshold of 200 and the legacy script far exceeds it, so the team avoids full rewrite, uses integration tests and branch by abstraction to route a single product format to new code and gradually replace the monolith.

AI-written summary · about

  1. 0:00Introduction to testing talk
  2. 1:04Legacy code challenges explained
  3. 7:06Codebase evolution and growth
  4. 16:20Why legacy code is untestable
  5. 20:14End-to-end testing strategy
  6. 26:44Refactoring for testability
  7. 31:02Branch by abstraction approach
  8. 33:56Testing benefits and documentation
  9. 36:27Building new code foundations
  10. 37:18Q&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.