~/talk

Using HTTPlug Bundle in a Test Environment

TalkinFrenchat SymfonyLive Paris 2018 · on Friday, 2018-10-05· [testing]
links:none on file
slides:none on file

Shows how to test HTTP calls when using HTTPlug in Symfony projects: why you might mock external web services, how to use HTTPlug’s mock-client to create and attach mocked responses, and how to store mock response files in the project to automate response creation. Also covers strategies for testing HTTP calls when HTTPlug is not yet in use, with concrete usage examples.

AI-written summary · about

  1. 0:00Introduction
  2. 3:22I. Configuring HTTPlug
  3. 4:21I. Installation
  4. 5:07I. To summarize
  5. 6:10I. Testing is doubting.
  6. 8:47II. Using the mock client
  7. 9:25II. Installing the mock client
  8. 10:03II. Configuring the mock client
  9. 10:50II. Testing with the mock client
  10. 11:21II. The class to test
  11. 12:12II. The associated test
  12. 15:00II. So far, so good
  13. 16:20III. A bit of automation with the « File client
  14. 17:49III. The signature
  15. 18:24III. The associated code
  16. 19:12III. One interface to rule them all.
  17. 21:08III. Using the FileClient
  18. 21:31III. Replacing the client
  19. 22:37III. The test (or dev) configuration
  20. 23:02III. The factory
  21. 23:52III. The first times...
  22. 24:26III. Creating the fixtures
  23. 24:38III. All is well
  24. 25:19IV. Closing words
  25. 31:07III. Inside the client
~/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.