~/talk

An Introduction to Unit Testing (for WordPress)

Talkat WordCamp London 2018 · 2018-04-13..04-15· [wordpress, testing, php]
slides:none on file

High-level claim: unit tests verify small pieces of logic in isolation so they catch bugs faster and remain stable. Uses PHP and JavaScript examples with a unit test framework, builds tests for plain functions and a repository object, replaces external services via mocking and data providers to exercise two scenarios, and asserts specific return values. Isolation makes tests deterministic, surfaces incorrect outputs, and keeps failures localized rather than blowing up integration layers.

AI-written summary · about

  1. 0:00Introduction to unit testing
  2. 3:09What is unit testing?
  3. 6:37White box vs black box testing
  4. 9:14Testing individual logic units
  5. 12:04Choosing a test framework
  6. 16:20Mocking in unit tests
  7. 22:10Testing object behavior
  8. 27:00Component isolation benefits
  9. 32:00Structuring test expectations
  10. 35:19Dynamic casting and execution
  11. 39:08Summary and Q&A
~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 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.