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/YoutubeStreamTest.php
Normal file
27
tests/YoutubeStreamTest.php
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
/**
|
||||
* YoutubeStreamTest class.
|
||||
*/
|
||||
|
||||
namespace Alltube\Test;
|
||||
|
||||
use Alltube\Stream\YoutubeStream;
|
||||
use Alltube\Video;
|
||||
|
||||
/**
|
||||
* Unit tests for the YoutubeStream class.
|
||||
*/
|
||||
class YoutubeStreamTest extends StreamTest
|
||||
{
|
||||
/**
|
||||
* Prepare tests.
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$video = new Video('https://www.youtube.com/watch?v=dQw4w9WgXcQ', '135');
|
||||
|
||||
$this->stream = new YoutubeStream($video);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue