Get information about an artist.
public getArtistInfo ( $name ) : array | false | ||
$name | string Name of the artist | |
return | array | false |
public function testGetArtistInfoFailed() { $client = m::mock(Client::class, ['get' => new Response(400, [], file_get_contents(dirname(__FILE__) . '/blobs/lastfm/artist-notfound.xml'))]); $api = new Lastfm(null, null, $client); $this->assertFalse($api->getArtistInfo('foo')); }