The Strangebuzz PHP/Symfony blog.
Articles for the "mock" tag.
2024-03-28T22:15:08+01:00
COil
coil@strangebuzz.com
https://www.strangebuzz.com/en/blog/tag/mock.xml
https://www.strangebuzz.com/img/strangebuzz_132.jpg?6.4.2
https://www.strangebuzz.com/img/strangebuzz_1024.jpg?6.4.2
© 2024 Strangebuzz
Simple API mocking with the Symfony HTTP client
https://www.strangebuzz.com/en/blog/simple-api-mocking-with-the-symfony-http-client
2022-02-12T00:00:00+01:00
2022-02-12T00:00:00+01:00
COil
coil@strangebuzz.com
In this post, we see a simple solution to mock API calls with the Symfony HTTP client, declare a scoped HTTP client and test it with or without mock.