41 if (is_string(
$data)) {
42 $stream = fopen(
'php://memory',
'r+');
47 $this->contents =
$data;
60 return $this->contents;
An exception for terminatinating execution or to throw for unit testing.
Mock Streaming File File.
getETag()
Returns the ETag for a file.
getSize()
Returns the size of the node, in bytes.
setSize($size)
Allows testing scripts to set the resource's file size.
put($data)
Updates the data.
$stream
PHP stream implementation.