Merge pull request #15831 from owncloud/enc2-unittestcleanuptmpfile
Delete temp files after testing encryption stream wrapper
This commit is contained in:
commit
3b1a3cc27b
|
@ -148,6 +148,8 @@ class Encryption extends \Test\TestCase {
|
||||||
$stream = $this->getStream($fileName, 'r', 6);
|
$stream = $this->getStream($fileName, 'r', 6);
|
||||||
$this->assertEquals('foobar', fread($stream, 100));
|
$this->assertEquals('foobar', fread($stream, 100));
|
||||||
fclose($stream);
|
fclose($stream);
|
||||||
|
|
||||||
|
unlink($fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSeek() {
|
public function testSeek() {
|
||||||
|
@ -161,6 +163,8 @@ class Encryption extends \Test\TestCase {
|
||||||
$stream = $this->getStream($fileName, 'r', 9);
|
$stream = $this->getStream($fileName, 'r', 9);
|
||||||
$this->assertEquals('foofoobar', fread($stream, 100));
|
$this->assertEquals('foofoobar', fread($stream, 100));
|
||||||
fclose($stream);
|
fclose($stream);
|
||||||
|
|
||||||
|
unlink($fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
function dataFilesProvider() {
|
function dataFilesProvider() {
|
||||||
|
@ -198,6 +202,8 @@ class Encryption extends \Test\TestCase {
|
||||||
fclose($stream);
|
fclose($stream);
|
||||||
|
|
||||||
$this->assertEquals($expectedData, $data);
|
$this->assertEquals($expectedData, $data);
|
||||||
|
|
||||||
|
unlink($fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue