mocking responses
hamidhaghdoost opened this issue · 1 comments
hamidhaghdoost commented
Is there any approach to mocking of responses in the test env?
I know some drivers like Zarrinpal have test endpoints but how we can test all of them in one place?
khanzadimahdi commented
you can mock the package using its interface.
just create a mock driver and implement the driver interface and use it in your app.