/** * @test */ public function shouldGetSmugMugMethodOptions() { $mock = new MockHandler([new Response(200, [], $this->fauxSmugMugResponse)]); $handler = HandlerStack::create($mock); $client = new Client($this->APIKey, ['handler' => $handler]); $options = $client->options('user/' . $this->user); $this->assertObjectHasAttribute('foo', $options); $this->assertEquals('bar', $options->foo); $this->assertObjectNotHasAttribute('Response', $options); }