~/talk

TDD💙BDD💙PHP - Test-driven development in PHP with phpspec

TalkinItalianat phpday PUG Edition 2020 · on Tuesday, 2020-06-02· [php]
slides:none on file

Demonstrates test-driven and behavior-driven development in PHP using phpspec: shows composer install, describe/run commands, automatic creation of classes and methods, and the red‑green‑refactor loop turning failing examples into passing code. Implements an end‑to‑end FizzBuzz kata, fixes a 20% test break caused by adding strict types, and shows interaction tests using Prophecy mocks and a logger while emphasizing readable specs, constructor injection, and incremental refactors with tests passing at each step.

AI-written summary · about

  1. 0:00Introduction
  2. 4:07Automated testing in PHP
  3. 6:15TDD and Red-Green-Refactor
  4. 9:48BDD and stakeholder communication
  5. 12:40phpspec for BDD in PHP
  6. 13:44Installing phpspec
  7. 16:52Writing first spec
  8. 21:52Test-driven FizzBuzz
  9. 26:32Refactoring and error handling
  10. 28:40Testing collaborators and mocks
  11. 32:36Common testing mistakes
  12. 33:43PHP Catania community resources
  13. 34:27Q&A
~/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.