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')); }