aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Storage
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2021-09-20 19:20:51 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2021-09-21 17:41:59 +0200
commite60a829b42f0f4b74db835d8e10438a33e125051 (patch)
tree93baede211fab7cc615dc3b3e6418648e41e55da /tests/lib/Files/Storage
parentdbf7905149222115a2cd0334efcf8c93afa8683e (diff)
downloadnextcloud-server-e60a829b42f0f4b74db835d8e10438a33e125051.tar.gz
nextcloud-server-e60a829b42f0f4b74db835d8e10438a33e125051.zip
explicitly close source stream on local storage
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'tests/lib/Files/Storage')
-rw-r--r--tests/lib/Files/Storage/Storage.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/Files/Storage/Storage.php b/tests/lib/Files/Storage/Storage.php
index ecc2bb50538..9fae1a8484a 100644
--- a/tests/lib/Files/Storage/Storage.php
+++ b/tests/lib/Files/Storage/Storage.php
@@ -658,6 +658,7 @@ abstract class Storage extends \Test\TestCase {
$storage->writeStream('test.txt', $source);
$this->assertTrue($storage->file_exists('test.txt'));
- $this->assertEquals(file_get_contents($textFile), $storage->file_get_contents('test.txt'));
+ $this->assertStringEqualsFile($textFile, $storage->file_get_contents('test.txt'));
+ $this->assertEquals('resource (closed)', gettype($source));
}
}