make sure to close the stream at the end of each test

This commit is contained in:
Bjoern Schiessle 2014-05-28 16:05:24 +02:00 committed by Thomas Müller
parent ba887d2b17
commit e6712bc12e
1 changed files with 6 additions and 0 deletions

View File

@ -136,6 +136,8 @@ class Test_Encryption_Stream extends \PHPUnit_Framework_TestCase {
// set stream options
$this->assertTrue(stream_set_blocking($handle, 1));
fclose($handle);
// tear down
$view->unlink($filename);
}
@ -158,6 +160,8 @@ class Test_Encryption_Stream extends \PHPUnit_Framework_TestCase {
// set stream options
$this->assertFalse(stream_set_timeout($handle, 1));
fclose($handle);
// tear down
$view->unlink($filename);
}
@ -177,6 +181,8 @@ class Test_Encryption_Stream extends \PHPUnit_Framework_TestCase {
// set stream options
$this->assertEquals(0, stream_set_write_buffer($handle, 1024));
fclose($handle);
// tear down
$view->unlink($filename);
}