alltube/tests/PlaylistArchiveStreamTest.php

38 lines
799 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\Exception\ConfigException;
use Alltube\Exception\DependencyException;
use Alltube\Stream\PlaylistArchiveStream;
use SmartyException;
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
* @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
{
parent::setUp();
$video = $this->downloader->getVideo(
'https://www.youtube.com/playlist?list=PL1j4Ff8cAqPu5iowaeUAY8lRgkfT4RybJ'
);
$this->stream = new PlaylistArchiveStream($this->downloader, $video);
2017-05-02 15:04:55 +00:00
}
}