|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class PHPFunctions. More...
Collaboration diagram for ILIAS\Filesystem\Util\PHPStreamFunctions:Static Public Member Functions | |
| static | ftell ($handle) |
| ftell wrapper More... | |
| static | fclose ($handle) |
| fclose wrapper More... | |
| static | fseek ($stream, $offset, $whence) |
| fseek wrapper. More... | |
| static | fread ($handle, $length) |
| fread wrapper More... | |
| static | stream_get_contents ($handle, $length=-1) |
| stream_get_contents wrapper More... | |
| static | fwrite ($handle, $string, $length=null) |
| fwrite wrapper More... | |
Class PHPFunctions.
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 18 of file PHPStreamFunctions.php.
|
static |
fclose wrapper
| $handle |
Definition at line 43 of file PHPStreamFunctions.php.
References ILIAS\Filesystem\Util\PHPStreamFunctions\fclose().
Referenced by ILIAS\Filesystem\Stream\Stream\close(), and ILIAS\Filesystem\Util\PHPStreamFunctions\fclose().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
fread wrapper
| $handle | |
| $length |
Definition at line 74 of file PHPStreamFunctions.php.
References ILIAS\Filesystem\Util\PHPStreamFunctions\fread().
Referenced by ILIAS\Filesystem\Util\PHPStreamFunctions\fread(), and ILIAS\Filesystem\Stream\Stream\read().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
fseek wrapper.
| $stream | |
| $offset | |
| $whence |
Definition at line 58 of file PHPStreamFunctions.php.
References GuzzleHttp\Psr7\$stream, and ILIAS\Filesystem\Util\PHPStreamFunctions\fseek().
Referenced by ILIAS\Filesystem\Util\PHPStreamFunctions\fseek(), and ILIAS\Filesystem\Stream\Stream\seek().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
ftell wrapper
| $handle |
Definition at line 30 of file PHPStreamFunctions.php.
References ILIAS\Filesystem\Util\PHPStreamFunctions\ftell().
Referenced by ILIAS\Filesystem\Util\PHPStreamFunctions\ftell(), and ILIAS\Filesystem\Stream\Stream\tell().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
fwrite wrapper
| $handle | ||
| $string | ||
| null | $length |
Definition at line 107 of file PHPStreamFunctions.php.
References ILIAS\Filesystem\Util\PHPStreamFunctions\fwrite().
Referenced by ILIAS\Filesystem\Util\PHPStreamFunctions\fwrite(), ILIAS\Filesystem\Stream\StreamTest\testWriteWhichShouldSucceed(), and ILIAS\Filesystem\Stream\Stream\write().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
stream_get_contents wrapper
| $handle | |
| $length |
Definition at line 90 of file PHPStreamFunctions.php.
References ILIAS\Filesystem\Util\PHPStreamFunctions\stream_get_contents().
Referenced by ILIAS\Filesystem\Stream\Stream\getContents(), and ILIAS\Filesystem\Util\PHPStreamFunctions\stream_get_contents().
Here is the call graph for this function:
Here is the caller graph for this function: