diff --git a/tests/unit/varstream.php b/tests/unit/varstream.php
index d9bf97dd41fe5c23e3ebd1519cfc9d561163f78d..daa4f636d4a5d6eb25f4881bd54016857031fb62 100644
--- a/tests/unit/varstream.php
+++ b/tests/unit/varstream.php
@@ -111,6 +111,10 @@ class ArrayFileStream
         }
     }
 
+    public function stream_set_option(int $option, int $arg1, int $arg2)
+    {
+    }
+
     public function stream_stat() {
         return array('size' => is_array($this->open_file)
                      ? sizeof($this->open_file)