ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class PHPFunctions. More...
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 19 of file PHPStreamFunctions.php.
|
static |
fclose wrapper
$handle |
Definition at line 44 of file PHPStreamFunctions.php.
Referenced by ILIAS\Filesystem\Stream\Stream\close().
|
static |
fread wrapper
$handle | |
$length |
Definition at line 75 of file PHPStreamFunctions.php.
Referenced by ILIAS\Filesystem\Stream\Stream\read().
|
static |
fseek wrapper.
$stream | |
$offset | |
$whence |
Definition at line 59 of file PHPStreamFunctions.php.
References GuzzleHttp\Psr7\$stream.
Referenced by ILIAS\Filesystem\Stream\Stream\seek().
|
static |
ftell wrapper
$handle |
Definition at line 31 of file PHPStreamFunctions.php.
Referenced by ILIAS\Filesystem\Stream\Stream\tell().
|
static |
fwrite wrapper
$handle | ||
$string | ||
null | $length |
Definition at line 108 of file PHPStreamFunctions.php.
Referenced by ILIAS\Filesystem\Stream\StreamTest\testWriteWhichShouldSucceed(), and ILIAS\Filesystem\Stream\Stream\write().
|
static |
stream_get_contents wrapper
$handle | |
$length |
Definition at line 91 of file PHPStreamFunctions.php.
Referenced by ILIAS\Filesystem\Stream\Stream\getContents().