test: Test getAudioStream() with a playlist

This commit is contained in:
Pierre Rudloff 2018-05-23 22:52:15 +02:00
parent edf4d4644d
commit 1d4a1ac65c
1 changed files with 11 additions and 0 deletions

View File

@ -417,6 +417,17 @@ class VideoDownloadTest extends TestCase
$this->download->getAudioStream('https://vimeo.com/251997032', 'bestaudio/best');
}
/**
* Test getAudioStream function with a playlist.
*
* @return void
* @expectedException Exception
*/
public function testGetAudioStreamPlaylistError()
{
$this->download->getAudioStream('https://www.youtube.com/playlist?list=PLgdySZU6KUXL_8Jq5aUkyNV7wCa-4wZsC', 'best');
}
/**
* Assert that a stream is valid.
*