From b88d0ba0ac9bb4b729eac5aa8bcadd0ff860dfbb Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 23 Apr 2015 13:42:18 +0200 Subject: [PATCH] Delete temp files after testing encryption stream wrapper --- tests/lib/files/stream/encryption.php | 6 ++++++ 1 file changed, 6 insertions(+) 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); } /** -- 2.39.5