FaultInjectionResource
Table of Contents
Constants
-
NAME
= 'zipstream-php-test-broken-resource'
Properties
-
$context
: resource
-
$injectFaults
: array<string|int, mixed>
-
$mode
: string
Methods
-
getResource()
: resource
-
register()
: void
-
stream_eof()
: mixed
-
stream_open()
: bool
-
stream_seek()
: bool
-
stream_stat()
: array<string|int, mixed>
-
stream_tell()
: int
-
stream_write()
: mixed
-
url_stat()
: array<string|int, mixed>
-
createStreamContext()
: mixed
-
shouldFail()
: bool
NAME
public
mixed
NAME
= 'zipstream-php-test-broken-resource'
$context
public
resource
$context
$injectFaults
private
array<string|int, mixed>
$injectFaults
$mode
private
string
$mode
getResource()
public
static getResource(array<string|int, mixed> $injectFaults) : resource
Parameters
-
$injectFaults
: array<string|int, mixed>
-
register()
public
static register() : void
stream_eof()
public
stream_eof() : mixed
stream_open()
public
stream_open(string $path, string $mode, int $options[, string|null &$opened_path = null ]) : bool
Parameters
-
$path
: string
-
-
$mode
: string
-
-
$options
: int
-
-
$opened_path
: string|null
= null
-
stream_seek()
public
stream_seek(int $offset, int $whence) : bool
Parameters
-
$offset
: int
-
-
$whence
: int
-
stream_stat()
public
stream_stat() : array<string|int, mixed>
Return values
array<string|int, mixed>
stream_tell()
public
stream_tell() : int
stream_write()
public
stream_write(string $data) : mixed
Parameters
-
$data
: string
-
url_stat()
public
url_stat(string $path, int $flags) : array<string|int, mixed>
Parameters
-
$path
: string
-
-
$flags
: int
-
Return values
array<string|int, mixed>
createStreamContext()
private
static createStreamContext(array<string|int, mixed> $injectFaults) : mixed
Parameters
-
$injectFaults
: array<string|int, mixed>
-
shouldFail()
private
shouldFail(string $function) : bool
Parameters
-
$function
: string
-