function StreamWrapper::stream_read in X Autoload 7.4
Same name and namespace in other branches
- 7.5 tests/src/Filesystem/StreamWrapper.php \Drupal\xautoload\Tests\Filesystem\StreamWrapper::stream_read()
Parameters
int $count: Number of characters to read.
Return value
string Snippet read from the file.
File
- tests/
lib/ Filesystem/ StreamWrapper.php, line 121
Class
- StreamWrapper
- Intercept calls to the filesystem, so we don't have to create fixture files.
Namespace
Drupal\xautoload\Tests\FilesystemCode
function stream_read($count) {
$ret = substr($this->contents, $this->position, $count);
$this->position += strlen($ret);
return $ret;
}