1
0
mirror of https://github.com/Rudloff/alltube.git synced 2024-06-26 07:29:06 +02:00
alltube/tests/YoutubeChunkStreamTest.php

32 lines
567 B
PHP
Raw Normal View History

<?php
/**
* YoutubeChunkStreamTest class.
*/
namespace Alltube\Test;
use Alltube\Stream\YoutubeChunkStream;
use Alltube\Video;
2020-05-13 21:33:05 +02:00
use Exception;
/**
* Unit tests for the YoutubeChunkStream class.
* @requires download
*/
class YoutubeChunkStreamTest extends StreamTest
{
/**
* Prepare tests.
2020-05-13 21:33:05 +02:00
* @throws Exception
*/
2019-11-30 14:08:18 +01:00
protected function setUp(): void
{
parent::setUp();
$video = new Video('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
$this->stream = new YoutubeChunkStream($video->getHttpResponse());
}
}