2019-04-22 19:52:21 +00:00
|
|
|
<?php
|
2019-10-03 19:24:12 +00:00
|
|
|
|
2019-04-22 19:52:21 +00:00
|
|
|
/**
|
|
|
|
* ConvertedPlaylistArchiveStreamTest class.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Alltube\Test;
|
|
|
|
|
2020-06-20 23:44:20 +00:00
|
|
|
use Alltube\Config;
|
|
|
|
use Alltube\Exception\ConfigException;
|
2019-04-22 19:52:21 +00:00
|
|
|
use Alltube\Stream\ConvertedPlaylistArchiveStream;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Unit tests for the ConvertedPlaylistArchiveStream class.
|
2019-10-26 14:13:08 +00:00
|
|
|
* @requires download
|
2019-04-22 19:52:21 +00:00
|
|
|
*/
|
|
|
|
class ConvertedPlaylistArchiveStreamTest extends StreamTest
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Prepare tests.
|
2020-06-20 23:44:20 +00:00
|
|
|
* @throws ConfigException
|
2019-04-22 19:52:21 +00:00
|
|
|
*/
|
2019-11-30 13:08:18 +00:00
|
|
|
protected function setUp(): void
|
2019-04-22 19:52:21 +00:00
|
|
|
{
|
|
|
|
parent::setUp();
|
|
|
|
|
2020-06-20 23:44:20 +00:00
|
|
|
$config = Config::getInstance();
|
|
|
|
$downloader = $config->getDownloader();
|
|
|
|
$video = $downloader->getVideo('https://www.youtube.com/playlist?list=PL1j4Ff8cAqPu5iowaeUAY8lRgkfT4RybJ');
|
2019-04-22 19:52:21 +00:00
|
|
|
|
2020-06-20 23:44:20 +00:00
|
|
|
$this->stream = new ConvertedPlaylistArchiveStream($downloader, $video);
|
2019-04-22 19:52:21 +00:00
|
|
|
}
|
|
|
|
}
|