2017-05-02 17:04:55 +02:00
|
|
|
<?php
|
2019-10-03 21:24:12 +02:00
|
|
|
|
2017-05-02 17:04:55 +02:00
|
|
|
/**
|
|
|
|
* PlaylistArchiveStreamTest class.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Alltube\Test;
|
|
|
|
|
2019-04-22 21:06:05 +02:00
|
|
|
use Alltube\Stream\PlaylistArchiveStream;
|
2019-04-21 18:35:24 +02:00
|
|
|
use Alltube\Video;
|
2017-05-02 17:04:55 +02:00
|
|
|
|
|
|
|
/**
|
2019-04-22 21:52:21 +02:00
|
|
|
* Unit tests for the PlaylistArchiveStream class.
|
2019-10-26 16:13:08 +02:00
|
|
|
* @requires download
|
2017-05-02 17:04:55 +02:00
|
|
|
*/
|
2019-04-22 21:52:21 +02:00
|
|
|
class PlaylistArchiveStreamTest extends StreamTest
|
2017-05-02 17:04:55 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Prepare tests.
|
|
|
|
*/
|
2019-11-30 14:08:18 +01:00
|
|
|
protected function setUp(): void
|
2017-05-02 17:04:55 +02:00
|
|
|
{
|
2019-04-21 18:30:02 +02:00
|
|
|
parent::setUp();
|
2019-04-21 00:34:12 +02:00
|
|
|
|
2019-04-21 18:30:02 +02:00
|
|
|
$video = new Video('https://www.youtube.com/playlist?list=PL1j4Ff8cAqPu5iowaeUAY8lRgkfT4RybJ');
|
2019-04-21 00:34:12 +02:00
|
|
|
|
2019-04-21 18:30:02 +02:00
|
|
|
$this->stream = new PlaylistArchiveStream($video);
|
2017-05-02 17:04:55 +02:00
|
|
|
}
|
|
|
|
}
|