saloonphp / saloon

🤠 Build beautiful API integrations and SDKs with Saloon
https://docs.saloon.dev
MIT License
2.09k stars 107 forks source link

Feature | V2 Prevent Stray Requests #282

Closed Sammyjo20 closed 1 year ago

Sammyjo20 commented 1 year ago

This PR introduces a new option you can use in your tests to prevent real API calls from happening in your tests.

Config::preventStrayRequests();