Hi! I need to test a simple OAuth2 service I am trying to create. However, to test it, I need to mock both $this and a Guzzle StaticClient. I am testing with phpspec. How should I go about doing this?
I tried injecting the StaticClient but I get an error: "could not reflect class Guzzle\Http\StaticClient as it is marked final".
My code is here: http://laravel.io/bin/NmeK
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community