Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 6 |
| DummyRemoteStreamWrapper | |
0.00% |
0 / 1 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 6 |
| getName | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getDescription | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| realpath | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\file_test\StreamWrapper\DummyRemoteStreamWrapper. | |
| */ | |
| namespace Drupal\file_test\StreamWrapper; | |
| 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 { | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function getName() { | |
| return t('Dummy files (remote)'); | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function getDescription() { | |
| return t('Dummy wrapper for simpletest (remote).'); | |
| } | |
| function realpath() { | |
| return FALSE; | |
| } | |
| } |