alltube/tests/ConvertedPlaylistArchiveStreamTest.php
2020-10-17 22:07:42 +02:00

32 lines
707 B
PHP

<?php
/**
* ConvertedPlaylistArchiveStreamTest class.
*/
namespace Alltube\Test;
use Alltube\Exception\ConfigException;
use Alltube\Stream\ConvertedPlaylistArchiveStream;
/**
* Unit tests for the ConvertedPlaylistArchiveStream class.
* @requires download
*/
class ConvertedPlaylistArchiveStreamTest extends StreamTest
{
/**
* Prepare tests.
* @throws ConfigException
*/
protected function setUp(): void
{
parent::setUp();
$video = $this->downloader->getVideo(
'https://www.youtube.com/playlist?list=PL1j4Ff8cAqPu5iowaeUAY8lRgkfT4RybJ'
);
$this->stream = new ConvertedPlaylistArchiveStream($this->downloader, $video);
}
}