951540name()); flush(); $imageURLsCount = array(); $testcaseNo = 1; foreach ($testcases as $testcase) { $coverArtList = $provider->getCoverArtList($testcase[0], $testcase[1], $limit); $coverArtList->artist = $testcase[0]; $coverArtList->album = $testcase[1]; $testResults[$provider->name][$testcaseNo] = $coverArtList; $count = count($coverArtList->results); $imageURLsCount[] = $count; echo sprintf("%" . $colWidthImageURLsCount . "d", $count); ++$testcaseNo; flush(); } if (array_sum($imageURLsCount) == 0) echo sprintf("%" . $colWidthStatus . "s", "FAIL!"); else echo sprintf("%" . $colWidthStatus . "s", "OK"); echo "\n"; flush(); } echo "\n"; echo "Finished!\n\n"; echo "Details:\n\n"; print_r($testResults); ?>