square-php-sdk
square-php-sdk copied to clipboard
Support mocking of `HttpClient` in `SquareClient
It would be helpful for testing SDK integrations to be able to provide a mock HttpClientInterface implementation. The Square\SquareClient constructor explicitly builds an Unirest\HttpClient making it challenging to inject alternative behavior.
Or if you have an another approach / suggestion for mocking SquareClient...