public function testDownloadByCurlCommand()
{
$downloader = new UrlDownloaderForTest($this->logger, new OptionResult());
$downloader->setIsCurlCommandAvailable(true);
$actualFilePath = tempnam(Config::getTempFileDir(), '');
$downloader->download('http://httpbin.org/', $actualFilePath);
$this->assertTrue($downloader->isCurlCommandAvailable());
$this->assertFileExists($actualFilePath);
}