summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-05-28 16:05:24 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-06-04 07:55:45 +0200
commite6712bc12e6e57fd656a64f870243ee2aff4f10c (patch)
tree1835c2499c2284dbf24d26e9eff7a2bf9dc2804d /apps
parentba887d2b171a410e2c5925fa9e1519e7e69b71c2 (diff)
downloadnextcloud-server-e6712bc12e6e57fd656a64f870243ee2aff4f10c.tar.gz
nextcloud-server-e6712bc12e6e57fd656a64f870243ee2aff4f10c.zip
make sure to close the stream at the end of each test
Diffstat (limited to 'apps')
-rw-r--r--apps/files_encryption/tests/stream.php6
1 files changed, 6 insertions, 0 deletions
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);
}