2017-05-02 15:04:55 +00:00
|
|
|
<?php
|
2019-10-03 19:24:12 +00:00
|
|
|
|
2017-05-02 15:04:55 +00:00
|
|
|
/**
|
|
|
|
* PlaylistArchiveStreamTest class.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Alltube\Test;
|
|
|
|
|
2020-06-20 23:44:20 +00:00
|
|
|
use Alltube\Exception\ConfigException;
|
2020-10-22 20:39:09 +00:00
|
|
|
use Alltube\Exception\DependencyException;
|
2019-04-22 19:06:05 +00:00
|
|
|
use Alltube\Stream\PlaylistArchiveStream;
|
2020-10-22 20:39:09 +00:00
|
|
|
use SmartyException;
|
2017-05-02 15:04:55 +00:00
|
|
|
|
|
|
|
/**
|
2019-04-22 19:52:21 +00:00
|
|
|
* Unit tests for the PlaylistArchiveStream class.
|
2019-10-26 14:13:08 +00:00
|
|
|
* @requires download
|
2017-05-02 15:04:55 +00:00
|
|
|
*/
|
2019-04-22 19:52:21 +00:00
|
|
|
class PlaylistArchiveStreamTest extends StreamTest
|
2017-05-02 15:04:55 +00:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Prepare tests.
|
2020-10-22 20:39:09 +00:00
|
|
|
*
|
2020-06-20 23:44:20 +00:00
|
|
|
* @throws ConfigException
|
2020-10-22 20:39:09 +00:00
|
|
|
* @throws DependencyException
|
|
|
|
* @throws SmartyException
|
2017-05-02 15:04:55 +00:00
|
|
|
*/
|
2019-11-30 13:08:18 +00:00
|
|
|
protected function setUp(): void
|
2017-05-02 15:04:55 +00:00
|
|
|
{
|
2019-04-21 16:30:02 +00:00
|
|
|
parent::setUp();
|
2019-04-20 22:34:12 +00:00
|
|
|
|
2020-10-17 20:07:07 +00:00
|
|
|
$video = $this->downloader->getVideo(
|
|
|
|
'https://www.youtube.com/playlist?list=PL1j4Ff8cAqPu5iowaeUAY8lRgkfT4RybJ'
|
|
|
|
);
|
2019-04-20 22:34:12 +00:00
|
|
|
|
2020-10-17 20:07:07 +00:00
|
|
|
$this->stream = new PlaylistArchiveStream($this->downloader, $video);
|
2017-05-02 15:04:55 +00:00
|
|
|
}
|
|
|
|
}
|