alltube/tests/PlaylistArchiveStreamTest.php

34 lines
737 B
PHP
Raw Normal View History

2017-05-02 15:04:55 +00:00
<?php
2017-05-02 15:04:55 +00:00
/**
* PlaylistArchiveStreamTest class.
*/
namespace Alltube\Test;
use Alltube\Config;
use Alltube\Exception\ConfigException;
use Alltube\Stream\PlaylistArchiveStream;
2017-05-02 15:04:55 +00:00
/**
* Unit tests for the PlaylistArchiveStream class.
* @requires download
2017-05-02 15:04:55 +00:00
*/
class PlaylistArchiveStreamTest extends StreamTest
2017-05-02 15:04:55 +00:00
{
/**
* Prepare tests.
* @throws ConfigException
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
{
parent::setUp();
$config = Config::getInstance();
$downloader = $config->getDownloader();
$video = $downloader->getVideo('https://www.youtube.com/playlist?list=PL1j4Ff8cAqPu5iowaeUAY8lRgkfT4RybJ');
$this->stream = new PlaylistArchiveStream($downloader, $video);
2017-05-02 15:04:55 +00:00
}
}