~/talk

Getting started with test-driven development with PHPUnit

Talkat TYPO3 Developer Days 2019 · 2019-08-01..08-04· [testing, php]
slides:none on file

Hands-on workshop that teaches using PHPUnit on PHP 7 with composer and an IDE to write real unit tests, run them red→green, and iterate fast. Shows concrete conventions: subject-under-test as first arg, assert patterns, setUp fixtures and live templates to scaffold tests, and asserting exceptions and return values. Demonstrates starting tests before code, refactoring with safety nets, and small domain examples (coffee model, cart) that run green locally.

AI-written summary · about

  1. 0:00Introduction to TDD
  2. 13:13What is test-driven development
  3. 28:03Setting up PHPUnit tests
  4. 36:11Writing your first test
  5. 42:19Q&A and closing
~/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.