class TestvfsStreamWrapper in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperAlreadyRegisteredTestCase.php \org\bovigo\vfs\TestvfsStreamWrapper
Helper class for the test.
Hierarchy
- class \org\bovigo\vfs\vfsStreamWrapper
- class \org\bovigo\vfs\TestvfsStreamWrapper
Expanded class hierarchy of TestvfsStreamWrapper
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamWrapperAlreadyRegisteredTestCase.php, line 14
Namespace
org\bovigo\vfsView source
class TestvfsStreamWrapper extends vfsStreamWrapper {
/**
* unregisters vfsStreamWrapper
*/
public static function unregister() {
if (in_array(vfsStream::SCHEME, stream_get_wrappers()) === true) {
stream_wrapper_unregister(vfsStream::SCHEME);
}
self::$registered = false;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestvfsStreamWrapper:: |
public static | function |
unregisters vfsStreamWrapper Overrides vfsStreamWrapper:: |
|
vfsStreamWrapper:: |
protected | property | shortcut to file container | |
vfsStreamWrapper:: |
protected | property | shortcut to directory container | |
vfsStreamWrapper:: |
protected | property | shortcut to directory container iterator | |
vfsStreamWrapper:: |
protected | property | file mode: read only, write only, all | |
vfsStreamWrapper:: |
private static | property | disk space quota | |
vfsStreamWrapper:: |
protected static | property | switch whether class has already been registered as stream wrapper or not | |
vfsStreamWrapper:: |
protected static | property | root content | |
vfsStreamWrapper:: |
constant | file mode: read and write | ||
vfsStreamWrapper:: |
constant | set file pointer to end, append new data | ||
vfsStreamWrapper:: |
protected | function | calculates the file mode | |
vfsStreamWrapper:: |
private | function | creates a file at given path | |
vfsStreamWrapper:: |
public | function | closes directory | 1 |
vfsStreamWrapper:: |
public | function | opens a directory | 1 |
vfsStreamWrapper:: |
public | function | reads directory contents | 1 |
vfsStreamWrapper:: |
public | function | reset directory iteration | 1 |
vfsStreamWrapper:: |
private | function | executes given permission change when necessary rights allow such a change | |
vfsStreamWrapper:: |
protected | function | removes a path | |
vfsStreamWrapper:: |
protected | function | returns content for given path | |
vfsStreamWrapper:: |
protected | function | returns content for given path but only when it is of given type | |
vfsStreamWrapper:: |
public static | function | returns the root content | |
vfsStreamWrapper:: |
private | function | helper method to detect whether given path is in root path | |
vfsStreamWrapper:: |
public | function | creates a new directory | 1 |
vfsStreamWrapper:: |
constant | open file for reading | ||
vfsStreamWrapper:: |
constant | file mode: read only | ||
vfsStreamWrapper:: |
public static | function | method to register the stream wrapper | |
vfsStreamWrapper:: |
public | function | rename from one path to another | 1 |
vfsStreamWrapper:: |
protected | function | helper method to resolve a path from /foo/bar/. to /foo/bar | |
vfsStreamWrapper:: |
public | function | removes a directory | 1 |
vfsStreamWrapper:: |
public static | function | sets quota for disk space | |
vfsStreamWrapper:: |
public static | function | sets the root content | |
vfsStreamWrapper:: |
protected | function | splits path into its dirname and the basename | |
vfsStreamWrapper:: |
public | function | retrieve the underlaying resource | 1 |
vfsStreamWrapper:: |
public | function | closes the stream | 1 |
vfsStreamWrapper:: |
public | function | checks whether stream is at end of file | 1 |
vfsStreamWrapper:: |
public | function | flushes unstored data into storage | 1 |
vfsStreamWrapper:: |
public | function | set lock status for stream | 1 |
vfsStreamWrapper:: |
public | function | sets metadata like owner, user or permissions | |
vfsStreamWrapper:: |
public | function | open the stream | 1 |
vfsStreamWrapper:: |
public | function | read the stream up to $count bytes | 1 |
vfsStreamWrapper:: |
public | function | seeks to the given offset | 1 |
vfsStreamWrapper:: |
public | function | sets options on the stream | |
vfsStreamWrapper:: |
public | function | returns status of stream | 1 |
vfsStreamWrapper:: |
public | function | returns the current position of the stream | 1 |
vfsStreamWrapper:: |
public | function | truncates a file to a given length | |
vfsStreamWrapper:: |
public | function | writes data into the stream | 1 |
vfsStreamWrapper:: |
constant | truncate file | ||
vfsStreamWrapper:: |
public | function | remove the data under the given path | 1 |
vfsStreamWrapper:: |
public | function | returns status of url | 1 |
vfsStreamWrapper:: |
constant | set file pointer to start, overwrite existing data | ||
vfsStreamWrapper:: |
constant | file mode: write only | ||
vfsStreamWrapper:: |
constant | set file pointer to start, overwrite existing data; or create file if does not exist |