ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
The purpose of this class is to wrap all stream handling php functions. More...
Static Public Member Functions | |
static | ftell ($handle) |
ftell wrapper More... | |
static | fseek ($stream, int $offset, int $whence) |
static | fclose ($handle) |
static | fread ($handle, int $length) |
static | stream_get_contents ($handle, $length=-1) |
static | fwrite ($handle, string $string, ?int $length=null) |
The purpose of this class is to wrap all stream handling php functions.
This allows to mock the functions within unit test which would otherwise require us to redefine the function in a scope which is scanned before the root scope and somehow call the function on our mocks the verify the function calls.
Definition at line 33 of file PHPStreamFunctions.php.
|
static |
resource | $handle |
Definition at line 61 of file PHPStreamFunctions.php.
Referenced by ILIAS\Filesystem\Stream\Stream\close().
|
static |
resource | $handle |
Definition at line 70 of file PHPStreamFunctions.php.
Referenced by ILIAS\Filesystem\Stream\Stream\read().
|
static |
resource | $stream |
Definition at line 52 of file PHPStreamFunctions.php.
Referenced by ILIAS\Filesystem\Stream\Stream\seek().
|
static |
ftell wrapper
resource | $handle |
Definition at line 43 of file PHPStreamFunctions.php.
Referenced by ILIAS\Filesystem\Stream\Stream\tell().
|
static |
resource | $handle |
Definition at line 89 of file PHPStreamFunctions.php.
Referenced by ILIAS\Filesystem\Stream\StreamTest\testWriteWhichShouldSucceed(), and ILIAS\Filesystem\Stream\Stream\write().
|
static |
resource | $handle |
Definition at line 79 of file PHPStreamFunctions.php.
Referenced by ILIAS\Filesystem\Stream\Stream\getContents().