~/talk

How to Test an External API with Zero Mocks

TalkinFrenchat API Platform Conference 2024 · 2024-09-19..09-20· [testing, api-design]
links:none on file
slides:none on file

Shows how to test external APIs without any mocks by staying as close as possible to the external API contract. Covers techniques and practices for writing tests that depend on real API behavior instead of maintaining mock servers or fixtures.

AI-written summary · about

  1. 0:00Introduction
  2. 3:38Testing external APIs
  3. 10:53Mocking APIs problem
  4. 11:57PHP VCR concept
  5. 15:30How PHP VCR works
  6. 18:39Why use PHP VCR
  7. 20:49Real project example
  8. 25:08Summary
~/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.