1<?php
2
3class DummyStreamWrapper
4{
5    /** @var resource|null */
6    public $context;
7
8    /** @var resource|null */
9    public $handle;
10
11    public function stream_cast(int $castAs)
12    {
13        return false;
14    }
15
16    public function stream_close(): void { }
17
18    public function stream_open(string $path, string $mode, int $options = 0, ?string &$openedPath = null): bool
19    {
20        return true;
21    }
22
23    public function stream_read(int $count)
24    {
25        return false;
26    }
27
28    public function stream_seek(int $offset, int $whence = SEEK_SET): bool
29    {
30        var_dump('stream_seek!');
31        return true;
32    }
33
34    public function stream_set_option(int $option, int $arg1, ?int $arg2): bool
35    {
36        return false;
37    }
38
39    public function stream_stat()
40    {
41        return false;
42    }
43
44    public function stream_tell()
45    {
46        return 0;
47    }
48
49    public function stream_truncate(int $newSize): bool
50    {
51        return true;
52    }
53
54    public function stream_write(string $data) { }
55
56
57    public function unlink(string $path): bool
58    {
59        return false;
60    }
61}
62