ILIAS
release_8 Revision v8.19
|
Class PHPFunctions. 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) |
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 34 of file PHPStreamFunctions.php.
|
static |
resource | $handle |
Definition at line 63 of file PHPStreamFunctions.php.
Referenced by ILIAS\Filesystem\Stream\Stream\close().
|
static |
resource | $handle |
Definition at line 73 of file PHPStreamFunctions.php.
Referenced by ILIAS\Filesystem\Stream\Stream\read().
|
static |
resource | $stream |
Definition at line 54 of file PHPStreamFunctions.php.
Referenced by ILIAS\Filesystem\Stream\Stream\seek().
|
static |
ftell wrapper
resource | $handle |
Definition at line 45 of file PHPStreamFunctions.php.
Referenced by ILIAS\Filesystem\Stream\Stream\tell().
|
static |
resource | $handle |
Definition at line 94 of file PHPStreamFunctions.php.
Referenced by ILIAS\Filesystem\Stream\StreamTest\testWriteWhichShouldSucceed(), and ILIAS\Filesystem\Stream\Stream\write().
|
static |
resource | $handle |
Definition at line 83 of file PHPStreamFunctions.php.
Referenced by ILIAS\Filesystem\Stream\Stream\getContents().