alltube/tests/PlaylistArchiveStreamTest.php

34 lines
737 B
PHP
Raw Normal View History

2017-05-02 17:04:55 +02:00
<?php
2017-05-02 17:04:55 +02:00
/**
* PlaylistArchiveStreamTest class.
*/
namespace Alltube\Test;
use Alltube\Config;
use Alltube\Exception\ConfigException;
use Alltube\Stream\PlaylistArchiveStream;
2017-05-02 17:04:55 +02:00
/**
* Unit tests for the PlaylistArchiveStream class.
* @requires download
2017-05-02 17:04:55 +02:00
*/
class PlaylistArchiveStreamTest extends StreamTest
2017-05-02 17:04:55 +02:00
{
/**
* Prepare tests.
* @throws ConfigException
2017-05-02 17:04:55 +02:00
*/
2019-11-30 14:08:18 +01:00
protected function setUp(): void
2017-05-02 17:04:55 +02: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 17:04:55 +02:00
}
}