vfsStream icon indicating copy to clipboard operation
vfsStream copied to clipboard

vfsStream is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system. It can be used with any unit test framework, like PHPUnit or SimpleTest.

Results 42 vfsStream issues
Sort by recently updated
recently updated
newest added

Welp, here we go again! The [`v1.6.x-dev`](https://packagist.org/packages/mikey179/vfsstream#v1.6.x-dev) version available via Composer now has support for PHP 8.2 nightly (which is currently in development). We have added PHP 8.2 to our...

Given that the file system is virtual, and as I understand fairly independent of the underlying system, it would seam it's possible to set a custom directory separator. I have...

Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.0.1. Release notes Sourced from actions/cache's releases. v3.0.1 Added support for caching from GHES 3.5. Fixed download issue for files > 2GB during restore. v3.0.0...

dependencies
github_actions

Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. Release notes Sourced from actions/checkout's releases. v3.0.0 Update default runtime to node16 v2.4.0 Convert SSH URLs like org-<ORG_ID>@github.com: to https://github.com/ - pr v2.3.5 Update...

dependencies
github_actions

HI Guys, I have a symfony php command where the parameter expects to send a csv file path. I would like to create a csv in a custom path using...

question

The outcome of a lot of functions depends on vfsStream::getCurrentUser() but there is currently no vfsStream::setCurrentUser(). Instead, it is assumed the current Linux user is relevant or that testing everything...

I have a test suite where I create a directory with vfsStream, which is meant to simulate a write-blocked directory for my SUT. In my code the logic checks both...

investigate

![image](https://user-images.githubusercontent.com/2228672/120028049-758c8180-bff4-11eb-8135-cfc05c73d3db.png) captured when the PrestaShop/Smarty caching is conigured to VFS like: ``` use org\bovigo\vfs\vfsStream; $vfsSmartyRoot = vfsStream::setup('smarty', 0000); $vfsSmartyCompile = vfsStream::newDirectory('compile')->at($vfsSmartyRoot); $vfsSmartyCache = vfsStream::newDirectory('cache')->at($vfsSmartyRoot); global $smarty; $smarty = new SmartyCustom();...

Code to reproduce: ``` use org\bovigo\vfs\vfsStream; $root = vfsStream::setup('x'); var_dump($root->url()); // var_dump(unlink($root->url())); // exception is thrown - correct: Operation not permitted // var_dump(rename($root->url(), $root->url() . '/a/a')); // exception is thrown...