function StreamWrapper::stream_open in X Autoload 7.5
Same name and namespace in other branches
- 7.4 tests/lib/Filesystem/StreamWrapper.php \Drupal\xautoload\Tests\Filesystem\StreamWrapper::stream_open()
Parameters
$path:
$mode:
$options:
$opened_path:
Return value
bool
Throws
\Exception
File
- tests/
src/ Filesystem/ StreamWrapper.php, line 92
Class
- StreamWrapper
- Intercept calls to the filesystem, so we don't have to create fixture files.
Namespace
Drupal\xautoload\Tests\FilesystemCode
function stream_open($path, $mode, $options, &$opened_path) {
$this->contents = self::$filesystem
->getFileContents($path);
$this->path = $path;
$this->position = 0;
return TRUE;
}