new Response(200, [], file_get_contents(__DIR__.'../../blobs/itunes/track.json')), ]); $api = new iTunes($client); self::assertEquals( 'https://itunes.apple.com/us/album/i-remember-you/id265611220?i=265611396&uo=4&at=1000lsGu', $api->getTrackUrl('Foo Bar') ); self::assertNotNull(cache(md5('itunes_track_url_Foo Bar'))); } }