You are here

function StreamWrapper::stream_open in X Autoload 7.3

Parameters

$path:

$mode:

$options:

$opened_path:

Return value

bool

Throws

\Exception

File

tests/Drupal/xautoload/Tests/StreamWrapper.php, line 87

Class

StreamWrapper
Intercept calls to the filesystem, so we don't have to create fixture files.

Namespace

Drupal\xautoload\Tests

Code

function stream_open($path, $mode, $options, &$opened_path) {
  $this->contents = self::$filesystem
    ->getFileContents($path);
  $this->path = $path;
  $this->position = 0;
  return TRUE;
}