FileMock
class FileMock
Mock files.
Constants
private Protocol |
|
Properties
static string[] | $files | ||
resource | $context |
Methods
static string
create(string $content = '', string|null $extension = null)
No description
static void
register()
No description
bool
stream_open(string $path, string $mode)
No description
stream_read(int $length)
No description
stream_write(string $data)
No description
int
stream_tell()
No description
bool
stream_eof()
No description
bool
stream_seek(int $offset, int $whence)
No description
bool
stream_truncate(int $size)
No description
bool
stream_set_option(int $option, int $arg1, int $arg2)
No description
array
stream_stat()
No description
url_stat(string $path, int $flags)
No description
bool
stream_lock(int $operation)
No description
bool
stream_metadata(string $path, int $option, $value)
No description
bool
unlink(string $path)
No description
Details
at line 40
static string
create(string $content = '', string|null $extension = null)
No description
at line 51
static void
register()
No description
at line 59
bool
stream_open(string $path, string $mode)
No description
at line 92
stream_read(int $length)
No description
at line 105
stream_write(string $data)
No description
at line 120
int
stream_tell()
No description
at line 126
bool
stream_eof()
No description
at line 132
bool
stream_seek(int $offset, int $whence)
No description
at line 150
bool
stream_truncate(int $size)
No description
at line 162
bool
stream_set_option(int $option, int $arg1, int $arg2)
No description
at line 168
array
stream_stat()
No description
at line 174
url_stat(string $path, int $flags)
No description
at line 182
bool
stream_lock(int $operation)
No description
at line 188
bool
stream_metadata(string $path, int $option, $value)
No description
at line 199
bool
unlink(string $path)
No description