public function testGetLastResponse() { $return = array('body' => get_fixture('track')); $stub = $this->setupStub('GET', '/v1/tracks/7EjyzZcbLxW7PaaLua9Ksb', array(), array(), $return); $api = new SpotifyWebAPI\SpotifyWebAPI($stub); $api->getTrack('7EjyzZcbLxW7PaaLua9Ksb'); $response = $api->getLastResponse(); $this->assertArrayHasKey('body', $response); }