From c53547f03693b8077c157a8dcc799e9a764a31aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Ba=C5=84kowski?= Date: Mon, 15 Jan 2024 17:31:37 +0100 Subject: [PATCH] Fixed StreamStub, so that it always starts from position=0 when stream is opened. --- src/Ouzo/Goodies/Tests/StreamStub.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Ouzo/Goodies/Tests/StreamStub.php b/src/Ouzo/Goodies/Tests/StreamStub.php index 5852304d..176f2e17 100644 --- a/src/Ouzo/Goodies/Tests/StreamStub.php +++ b/src/Ouzo/Goodies/Tests/StreamStub.php @@ -16,6 +16,7 @@ class StreamStub public function stream_open($path, $mode, $options, &$opened_path) { + self::$position = 0; return true; }