The current issue of the german PHP magazine features an article about vfsStream. On three pages Mike Wittje (I hope this is the correct Mike, just guessed ) describes how vfsStream can be used to simplify and improve unit tests for classes utilizing the file system and file system functions. Thanks to Mike for writing the article, helping to spread the word about vfsStream.
Over the weekend I'm going to test vfsStream with PHP 5.3 and try to fix any issues which pop up. I already received a patch by mail which is said to fix an issue with is_readable() (not tested yet), so it seems reasonable there will be a new release within the upcoming days.
The article did not provide much more insight than the vfsStream wiki or the PHPUnit documentation (http://www.phpunit.de/manual/current/en/test-doubles.html#test-doubles.mocking-the-filesystem), though.
You're right Sebastian, but the intention for the article was not to cover the functionality in its whole... i just wanted the readers to get an idea of the tool and the basic idea behind it and "spread the word about vfsStream", as Frank said, because i think its a great tool and i like to see more developers using it.
For chmod(), chown() and chgrp() this is correct. Unfortunately there is nothing vfsStream can do about it, as this is a limitation of what stream wrappers in PHP can do. However, with version 0.4.0 to be released later the day it becomes possible to set file permissions directly on vfsStream objects, so that functions like is_readable(), is_writable() and is_executable() will work.
For stat() this should work, but I didn't test it until now. Will do so before releasing 0.4.0.