\Symfony\Component\Filesystem\Tests\Fixtures\MockStreamMockStream

Mock stream class to be used with stream_wrapper_register.

stream_wrapper_register('mock', 'Symfony\Component\Filesystem\Tests\Fixtures\MockStream\MockStream').

Summary

Methods
Properties
Constants
stream_open()
url_stat()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

stream_open()

stream_open(string  $path, string  $mode, integer  $options, string  $opened_path) : boolean

Opens file or URL.

Parameters

string $path

Specifies the URL that was passed to the original function

string $mode

The mode used to open the file, as detailed for fopen()

integer $options

Holds additional flags set by the streams API

string $opened_path

If the path is opened successfully, and STREAM_USE_PATH is set in options, opened_path should be set to the full path of the file/resource that was actually opened

Returns

boolean

url_stat()

url_stat(string  $path, array  $flags) : array

Parameters

string $path

The file path or URL to stat

array $flags

Holds additional flags set by the streams API

Returns

array —

File stats