Check that PlaylistArchiveStream::stream_read returns a string

This commit is contained in:
Pierre Rudloff 2017-12-05 16:06:57 +01:00
parent d35b43dc17
commit 47789f8f8d
5 changed files with 330 additions and 14 deletions

View file

@ -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');