Although there’s well known advice to ‘not mock what you don’t own’. I find myself quite often padding in a mock of guzzle to unit test code that connects to an external API, which generally seems to work very well for testing code like [code]$response = $client->post(“/post”);[/code].