You are here

class TestvfsStreamWrapper in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperAlreadyRegisteredTestCase.php \org\bovigo\vfs\TestvfsStreamWrapper

Helper class for the test.

Hierarchy

Expanded class hierarchy of TestvfsStreamWrapper

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperAlreadyRegisteredTestCase.php, line 14

Namespace

org\bovigo\vfs
View 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

Namesort descending Modifiers Type Description Overrides
TestvfsStreamWrapper::unregister public static function unregisters vfsStreamWrapper Overrides vfsStreamWrapper::unregister
vfsStreamWrapper::$content protected property shortcut to file container
vfsStreamWrapper::$dir protected property shortcut to directory container
vfsStreamWrapper::$dirIterator protected property shortcut to directory container iterator
vfsStreamWrapper::$mode protected property file mode: read only, write only, all
vfsStreamWrapper::$quota private static property disk space quota
vfsStreamWrapper::$registered protected static property switch whether class has already been registered as stream wrapper or not
vfsStreamWrapper::$root protected static property root content
vfsStreamWrapper::ALL constant file mode: read and write
vfsStreamWrapper::APPEND constant set file pointer to end, append new data
vfsStreamWrapper::calculateMode protected function calculates the file mode
vfsStreamWrapper::createFile private function creates a file at given path
vfsStreamWrapper::dir_closedir public function closes directory 1
vfsStreamWrapper::dir_opendir public function opens a directory 1
vfsStreamWrapper::dir_readdir public function reads directory contents 1
vfsStreamWrapper::dir_rewinddir public function reset directory iteration 1
vfsStreamWrapper::doPermChange private function executes given permission change when necessary rights allow such a change
vfsStreamWrapper::doUnlink protected function removes a path
vfsStreamWrapper::getContent protected function returns content for given path
vfsStreamWrapper::getContentOfType protected function returns content for given path but only when it is of given type
vfsStreamWrapper::getRoot public static function returns the root content
vfsStreamWrapper::isInRoot private function helper method to detect whether given path is in root path
vfsStreamWrapper::mkdir public function creates a new directory 1
vfsStreamWrapper::READ constant open file for reading
vfsStreamWrapper::READONLY constant file mode: read only
vfsStreamWrapper::register public static function method to register the stream wrapper
vfsStreamWrapper::rename public function rename from one path to another 1
vfsStreamWrapper::resolvePath protected function helper method to resolve a path from /foo/bar/. to /foo/bar
vfsStreamWrapper::rmdir public function removes a directory 1
vfsStreamWrapper::setQuota public static function sets quota for disk space
vfsStreamWrapper::setRoot public static function sets the root content
vfsStreamWrapper::splitPath protected function splits path into its dirname and the basename
vfsStreamWrapper::stream_cast public function retrieve the underlaying resource 1
vfsStreamWrapper::stream_close public function closes the stream 1
vfsStreamWrapper::stream_eof public function checks whether stream is at end of file 1
vfsStreamWrapper::stream_flush public function flushes unstored data into storage 1
vfsStreamWrapper::stream_lock public function set lock status for stream 1
vfsStreamWrapper::stream_metadata public function sets metadata like owner, user or permissions
vfsStreamWrapper::stream_open public function open the stream 1
vfsStreamWrapper::stream_read public function read the stream up to $count bytes 1
vfsStreamWrapper::stream_seek public function seeks to the given offset 1
vfsStreamWrapper::stream_set_option public function sets options on the stream
vfsStreamWrapper::stream_stat public function returns status of stream 1
vfsStreamWrapper::stream_tell public function returns the current position of the stream 1
vfsStreamWrapper::stream_truncate public function truncates a file to a given length
vfsStreamWrapper::stream_write public function writes data into the stream 1
vfsStreamWrapper::TRUNCATE constant truncate file
vfsStreamWrapper::unlink public function remove the data under the given path 1
vfsStreamWrapper::url_stat public function returns status of url 1
vfsStreamWrapper::WRITE constant set file pointer to start, overwrite existing data
vfsStreamWrapper::WRITEONLY constant file mode: write only
vfsStreamWrapper::WRITE_NEW constant set file pointer to start, overwrite existing data; or create file if does not exist