test(phpunit): Better tests for streams
This commit is contained in:
parent
d30614668b
commit
7bf2510dd2
8 changed files with 307 additions and 175 deletions
27
tests/ConvertedPlaylistArchiveStreamTest.php
Normal file
27
tests/ConvertedPlaylistArchiveStreamTest.php
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
/**
|
||||
* ConvertedPlaylistArchiveStreamTest class.
|
||||
*/
|
||||
|
||||
namespace Alltube\Test;
|
||||
|
||||
use Alltube\Stream\ConvertedPlaylistArchiveStream;
|
||||
use Alltube\Video;
|
||||
|
||||
/**
|
||||
* Unit tests for the ConvertedPlaylistArchiveStream class.
|
||||
*/
|
||||
class ConvertedPlaylistArchiveStreamTest extends StreamTest
|
||||
{
|
||||
/**
|
||||
* Prepare tests.
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$video = new Video('https://www.youtube.com/playlist?list=PL1j4Ff8cAqPu5iowaeUAY8lRgkfT4RybJ');
|
||||
|
||||
$this->stream = new ConvertedPlaylistArchiveStream($video);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue