I am using the functional tests of Codeception to test the routes of my REST application. In a few of my routes I use a third party REST API to get some data. To speak with this third party API I use a composer package published by the same party. Normally you would use a http mocker to fake the API calls to test it. The problem is that the domains are hardcoded in the composer package, so that I can't change them with a environment variable.
How could I go about testing my routes without using the real API calls?