Serious test-related question -- there is a bunch of code that relies on talking to an API that we do not control. How would YOU go about writing tests for code that relies on this API internally?
@afilina @grmpyprogrammer
I have an implementation where the simple built in PHP server is started (using symfony process component) before the integration tests, for my crawler package here: https://github.com/crwlrsoft/crawler/blob/main/tests/Pest.php#L24
If you can swap out the base URL for the API in your consumer, this could be a solution. Mocking could maybe be a bit easier, but I more and more like to avoid mocking as much as possible.