Check that PlaylistArchiveStream::stream_read returns a string
This commit is contained in:
parent
d35b43dc17
commit
47789f8f8d
5 changed files with 330 additions and 14 deletions
|
@ -3,6 +3,7 @@
|
|||
* File used to bootstrap tests.
|
||||
*/
|
||||
use Alltube\PlaylistArchiveStream;
|
||||
use phpmock\mockery\PHPMockery;
|
||||
|
||||
/**
|
||||
* Composer autoload.
|
||||
|
@ -14,3 +15,9 @@ session_cache_limiter('');
|
|||
session_start();
|
||||
|
||||
stream_wrapper_register('playlist', PlaylistArchiveStream::class);
|
||||
|
||||
/**
|
||||
* @see https://bugs.php.net/bug.php?id=68541
|
||||
*/
|
||||
PHPMockery::define('Alltube', 'popen');
|
||||
PHPMockery::define('Alltube', 'fopen');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue