Unit Testing Guzzle inside of Laravel Controller with PHPUnit
问题 I'm not quite sure which way to approach unit testing in this scenario. None of the examples for unit testing Guzzle quite make sense to me how to implement in this scenario, or perhaps I'm just looking at it incorrectly all together. The setup: Laravel 4.2 REST API - A controller method is using Guzzle in the method to request data from another api as follows: <?php class Widgets extends Controller { public function index(){ // Stuff $client = new GuzzleHttp\Client(); $url = "api.example.com