fix: Close playlist streams correctly
This commit is contained in:
parent
cd623bfa36
commit
4537b661e1
2 changed files with 22 additions and 0 deletions
|
@ -34,6 +34,16 @@ class PlaylistArchiveStreamTest extends TestCase
|
|||
$this->stream = new PlaylistArchiveStream(Config::getInstance('config/'.$configFile));
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean variables used in tests.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
$this->stream->stream_close();
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the stream_open() function.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue