summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-04-23 13:42:18 +0200
committerVincent Petry <pvince81@owncloud.com>2015-04-23 13:42:18 +0200
commitb88d0ba0ac9bb4b729eac5aa8bcadd0ff860dfbb (patch)
tree07ea3d57b236569e36d6efcf21c83db9e7497c95 /tests
parentf8f354b351a349898bbb5cdf2d9bee1c798c0f73 (diff)
downloadnextcloud-server-b88d0ba0ac9bb4b729eac5aa8bcadd0ff860dfbb.tar.gz
nextcloud-server-b88d0ba0ac9bb4b729eac5aa8bcadd0ff860dfbb.zip
Delete temp files after testing encryption stream wrapper
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/stream/encryption.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib/files/stream/encryption.php b/tests/lib/files/stream/encryption.php
index 25e7e54335e..1da208282e6 100644
--- a/tests/lib/files/stream/encryption.php
+++ b/tests/lib/files/stream/encryption.php
@@ -148,6 +148,8 @@ class Encryption extends \Test\TestCase {
$stream = $this->getStream($fileName, 'r', 6);
$this->assertEquals('foobar', fread($stream, 100));
fclose($stream);
+
+ unlink($fileName);
}
public function testSeek() {
@@ -161,6 +163,8 @@ class Encryption extends \Test\TestCase {
$stream = $this->getStream($fileName, 'r', 9);
$this->assertEquals('foofoobar', fread($stream, 100));
fclose($stream);
+
+ unlink($fileName);
}
function dataFilesProvider() {
@@ -198,6 +202,8 @@ class Encryption extends \Test\TestCase {
fclose($stream);
$this->assertEquals($expectedData, $data);
+
+ unlink($fileName);
}
/**