/** * @expectedException \Symfony\Component\Process\Exception\ProcessFailedException */ public function testBadUrlVideoDownload() { $yt = new YoutubeDl(['skip-download' => true]); $yt->setDownloadPath('/'); $yt->download('https://www.example.com'); }