bovigo / vfsStream

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow root path of "/"

bizurkur opened this issue · comments

Copied from #64:

I propose being able to store files directly into the vfs without first having to create an arbitrarily named directory to store everything in since I believe that is counter-intuitive for new users. I propose doing this by calling vfsStream::setup('/');, or better still, make it the default behaviour when calling vfsStream::setup();.

Changing the default would cause a BC break and force everyone who accesses the current default "root" path directly to update their tests.