make sure to close the stream at the end of each test
This commit is contained in:
parent
ba887d2b17
commit
e6712bc12e
|
@ -136,6 +136,8 @@ class Test_Encryption_Stream extends \PHPUnit_Framework_TestCase {
|
||||||
// set stream options
|
// set stream options
|
||||||
$this->assertTrue(stream_set_blocking($handle, 1));
|
$this->assertTrue(stream_set_blocking($handle, 1));
|
||||||
|
|
||||||
|
fclose($handle);
|
||||||
|
|
||||||
// tear down
|
// tear down
|
||||||
$view->unlink($filename);
|
$view->unlink($filename);
|
||||||
}
|
}
|
||||||
|
@ -158,6 +160,8 @@ class Test_Encryption_Stream extends \PHPUnit_Framework_TestCase {
|
||||||
// set stream options
|
// set stream options
|
||||||
$this->assertFalse(stream_set_timeout($handle, 1));
|
$this->assertFalse(stream_set_timeout($handle, 1));
|
||||||
|
|
||||||
|
fclose($handle);
|
||||||
|
|
||||||
// tear down
|
// tear down
|
||||||
$view->unlink($filename);
|
$view->unlink($filename);
|
||||||
}
|
}
|
||||||
|
@ -177,6 +181,8 @@ class Test_Encryption_Stream extends \PHPUnit_Framework_TestCase {
|
||||||
// set stream options
|
// set stream options
|
||||||
$this->assertEquals(0, stream_set_write_buffer($handle, 1024));
|
$this->assertEquals(0, stream_set_write_buffer($handle, 1024));
|
||||||
|
|
||||||
|
fclose($handle);
|
||||||
|
|
||||||
// tear down
|
// tear down
|
||||||
$view->unlink($filename);
|
$view->unlink($filename);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue