From 1d4a1ac65cabd1d527f580f77659080004bc1296 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Wed, 23 May 2018 22:52:15 +0200 Subject: [PATCH] test: Test getAudioStream() with a playlist --- tests/VideoDownloadTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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. *