summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-23 14:43:22 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-23 14:43:22 +0200
commit3b1a3cc27b5d89a9593c9c6715857ad47b4793d3 (patch)
tree5181e83ba736fd3ce8edfbee2eb2790195a1150b
parent6d3f120d239cd1797cd50de1e2978f64b46f9211 (diff)
parentb88d0ba0ac9bb4b729eac5aa8bcadd0ff860dfbb (diff)
downloadnextcloud-server-3b1a3cc27b5d89a9593c9c6715857ad47b4793d3.tar.gz
nextcloud-server-3b1a3cc27b5d89a9593c9c6715857ad47b4793d3.zip
Merge pull request #15831 from owncloud/enc2-unittestcleanuptmpfile
Delete temp files after testing encryption stream wrapper
-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);
}
/**