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 48
static string create(string $content = '', string|null $extension = null)

No description

Parameters

string $content
string|null $extension

Return Value

string

file name

at line 59
static void register()

No description

Return Value

void

at line 67
bool stream_open(string $path, string $mode)

No description

Parameters

string $path
string $mode

Return Value

bool

at line 99
stream_read(int $length)

No description

Parameters

int $length

at line 112
stream_write(string $data)

No description

Parameters

string $data

at line 127
int stream_tell()

No description

Return Value

int

at line 133
bool stream_eof()

No description

Return Value

bool

at line 139
bool stream_seek(int $offset, int $whence)

No description

Parameters

int $offset
int $whence

Return Value

bool

at line 157
bool stream_truncate(int $size)

No description

Parameters

int $size

Return Value

bool

at line 169
bool stream_set_option(int $option, int $arg1, int $arg2)

No description

Parameters

int $option
int $arg1
int $arg2

Return Value

bool

at line 175
array stream_stat()

No description

Return Value

array

at line 181
url_stat(string $path, int $flags)

No description

Parameters

string $path
int $flags

at line 189
bool stream_lock(int $operation)

No description

Parameters

int $operation

Return Value

bool

at line 195
bool stream_metadata(string $path, int $option, $value)

No description

Parameters

string $path
int $option
$value

Return Value

bool

No description

Parameters

string $path

Return Value

bool