diff --git a/src/Ouzo/Goodies/Tests/StreamStub.php b/src/Ouzo/Goodies/Tests/StreamStub.php
index <HASH>..<HASH> 100644
--- a/src/Ouzo/Goodies/Tests/StreamStub.php
+++ b/src/Ouzo/Goodies/Tests/StreamStub.php
@@ -46,6 +46,12 @@ class StreamStub
         return [];
     }
 
+    public function stream_seek($offset, $whence)
+    {
+        static::$position = $offset;
+        return true;
+    }
+
     public function stream_close()
     {
         return null;
Added seek to StreamStub.