DummyRemoteStreamWrapper.php

Definition of Drupal\file_test\DummyRemoteStreamWrapper.

Namespace

Drupal\file_test

File

drupal/core/modules/file/tests/file_test/lib/Drupal/file_test/DummyRemoteStreamWrapper.php
View source
<?php

/**
 * @file
 * Definition of Drupal\file_test\DummyRemoteStreamWrapper.
 */
namespace Drupal\file_test;

use Drupal\Core\StreamWrapper\PublicStream;

/**
 * Helper class for testing the stream wrapper registry.
 *
 * Dummy remote stream wrapper implementation (dummy-remote://).
 *
 * Basically just the public scheme but not returning a local file for realpath.
 */
class DummyRemoteStreamWrapper extends PublicStream {
  function realpath() {
    return FALSE;
  }

}

Classes

Namesort descending Description
DummyRemoteStreamWrapper Helper class for testing the stream wrapper registry.