saloonphp / saloon

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

Missing methods updates for MockResponse #389

Closed brandonferens closed 8 months ago

brandonferens commented 8 months ago

Currently the docs say:

Body Method Renamed On MockResponse Previously, Saloon had a method getBody() on a MockResponse class. This has now been renamed to body() to be more consistent with the rest of Saloon. Additionally, the old getBodyAsString() method has been removed.

I discovered that getHeaders() has been updated to headers() and getStatus() has been changed to status(). Not sure if there are other ones as well. Just thought you'd like to know!

Sammyjo20 commented 8 months ago

Oh thank you very much for letting me know @brandonferens! I have updated the guide 🙌

Screenshot 2024-03-19 at 22 54 59