From: Bjoern Schiessle Date: Wed, 28 May 2014 14:05:24 +0000 (+0200) Subject: make sure to close the stream at the end of each test X-Git-Tag: v7.0.0alpha2~127^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e6712bc12e6e57fd656a64f870243ee2aff4f10c;p=nextcloud-server.git make sure to close the stream at the end of each test --- diff --git a/apps/files_encryption/tests/stream.php b/apps/files_encryption/tests/stream.php index 5df9cdbe1f1..254c5e87ed1 100644 --- a/apps/files_encryption/tests/stream.php +++ b/apps/files_encryption/tests/stream.php @@ -136,6 +136,8 @@ class Test_Encryption_Stream extends \PHPUnit_Framework_TestCase { // set stream options $this->assertTrue(stream_set_blocking($handle, 1)); + fclose($handle); + // tear down $view->unlink($filename); } @@ -158,6 +160,8 @@ class Test_Encryption_Stream extends \PHPUnit_Framework_TestCase { // set stream options $this->assertFalse(stream_set_timeout($handle, 1)); + fclose($handle); + // tear down $view->unlink($filename); } @@ -177,6 +181,8 @@ class Test_Encryption_Stream extends \PHPUnit_Framework_TestCase { // set stream options $this->assertEquals(0, stream_set_write_buffer($handle, 1024)); + fclose($handle); + // tear down $view->unlink($filename); }