class FileMock

Mock files.

Constants

private PROTOCOL

Properties

static string[] $files

Methods

static string
create(string $content = '', string $extension = null)

No description

static void
register()

No description

bool
stream_open(string $path, string $mode)

No description

string
stream_read(int $length)

No description

int
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

array
stream_stat()

No description

url_stat(string $path, int $flags)

No description

bool
stream_lock(int $operation)

No description

bool
unlink(string $path)

No description

Details

at line 45
static string create(string $content = '', string $extension = null)

No description

Parameters

string $content
string $extension

Return Value

string

file name

at line 56
static void register()

No description

Return Value

void

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

No description

Parameters

string $path
string $mode

Return Value

bool

at line 96
string stream_read(int $length)

No description

Parameters

int $length

Return Value

string

at line 109
int stream_write(string $data)

No description

Parameters

string $data

Return Value

int

at line 124
int stream_tell()

No description

Return Value

int

at line 130
bool stream_eof()

No description

Return Value

bool

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

No description

Parameters

int $offset
int $whence

Return Value

bool

at line 153
bool stream_truncate(int $size)

No description

Parameters

int $size

Return Value

bool

at line 165
array stream_stat()

No description

Return Value

array

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

No description

Parameters

string $path
int $flags

at line 179
bool stream_lock(int $operation)

No description

Parameters

int $operation

Return Value

bool

No description

Parameters

string $path

Return Value

bool