85683 http://www.last.fm/music/Metallica/Metallica 1 Jan 1994, 00:00 http://static.last.fm/coverart/50x50/1411800.jpg http://static.last.fm/coverart/130x130/1411800.jpg http://static.last.fm/coverart/300x300/1411800.jpg 3750d9e2-59f5-471d-8916-463433069bd1 26 http://www.last.fm/music/Metallica/_/Enter+Sandman+%28LP+Version%29 22 http://www.last.fm/music/Metallica/_/Sad+But+True+%28LP+Version%29 2 http://www.last.fm/music/Metallica/_/Holier+Than+Thou+%28LP+Version%29 10 http://www.last.fm/music/Metallica/_/The+Unforgiven+%28LP+Version%29 4 http://www.last.fm/music/Metallica/_/Wherever+I+May+Roam+%28LP+Version%29 3 http://www.last.fm/music/Metallica/_/Don%27t+Tread+On+Me+%28LP+Version%29 3 http://www.last.fm/music/Metallica/_/Through+The+Never+%28LP+Version%29 26 http://www.last.fm/music/Metallica/_/Nothing+Else+Matters+%28LP+Version%29 3 http://www.last.fm/music/Metallica/_/Of+Wolf+And+Man+%28LP+Version%29 2 http://www.last.fm/music/Metallica/_/The+God+That+Failed+%28LP+Version%29 3 http://www.last.fm/music/Metallica/_/My+Friend+Of+Misery+%28LP+Version%29 3 http://www.last.fm/music/Metallica/_/The+Struggle+Within+%28LP+Version%29 '; $this->setAudioscrobblerResponse($albumInfoResponse); try { $as = $this->getAudioscrobblerService(); $as->set('album', 'Metallica'); $as->set('artist', 'Metallica'); $response = $as->albumGetInfo(); $track = $response->tracks->track[0]; $this->assertEquals((string)$response['artist'], 'Metallica'); $this->assertEquals((string)$response['title'], 'Metallica'); $this->assertEquals((string)$track->url, 'http://www.last.fm/music/Metallica/_/Enter+Sandman+%28LP+Version%29'); $this->assertEquals(count($response->tracks->track), 12); } catch (Exception $e ) { $this->fail("Exception: [" . $e->getMessage() . "] thrown by test"); } } }