public static function url($path) { return self::SCHEME . '://' . join('/', array_map('rawurlencode', explode('/', str_replace('\\', '/', $path)))); }
/** * {@inheritdoc} */ public function _setUpFiles($structure = NULL) { $structure = $structure ?: ['tmp' => []]; $this->root = vfsStream::setup('root', 0777, $structure); $this->adapter = new TempFileAdapter($this->root->url() . '/tmp/', 'bmtest_'); $this->manager = new TempFileManager($this->adapter); }