/** * @testdox Calling getPlaylist anonymously returns an array with playlist details. * @medium * @group integration */ public function testGetPlaylistAnonymous() { if (isset($this->mock)) { $this->mock->addResponse(new Response(200, ['Content-type' => 'application/json'], Stream::factory(json_encode(['kind' => 'playlist'])))); } $playlistId = getenv('playlist_id'); $result = $this->soundcloud->getPlaylist($playlistId); $this->assertTrue(is_array($result)); $this->assertTrue(array_key_exists('kind', $result)); $this->assertEquals('playlist', $result['kind']); }