diff --git a/tests/VideoDownloadTest.php b/tests/VideoDownloadTest.php index 2b576ac..998e37b 100644 --- a/tests/VideoDownloadTest.php +++ b/tests/VideoDownloadTest.php @@ -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. *