Against my intent of starting to work on file modes for 0.3.0 I decided that it is time to get an own repository for vfsStream in order to maintain it independently from Stubbles, which was the perfect reason to open a new project on Google Code. I will see if this proves to be a good solution for day to day development.
The movement also marked the reason to try PHPUnit because I wanted to make use of its code coverage and its software metrics features. Especially the last one showed me a bunch of points that required refactoring before starting something big like supporting file modes. During refactoring some improvements made it into the code which justified a new release: vfsStream now supports rmdir(), and I made some API changes. I dropped vfsStreamDirectory::ceate() in favor of vfsStream::newDirectory() to be equivalent to vfsStream::newFile(). Additionally there is a new vfsStreamContent::at() method now, which allows to write code like this:
$parentDir = vfsStream::newDirectory('newdir')->at(vfsStreamWrapper::getRoot());
$file = vfsStream::newFile('file.txt')->withContent('foo')
->lastModified(time() - 86400)
So far I'm very satisfied with the software analysis features of PHPUnit that I'm thinking very hard about saying good bye to SimpleTest in my other projects. Given the current state of SimpleTest's development I do not expect to get similar features in SimpleTest any time soon, and unfortunately I do not have the time to contribute to SimpleTest even if it would be a lot of fun I guess.
sorry if I post this here, where it is OT, I cannot find any mail of any Stubbles author. I would suggest a better organization of on line support.
I am really impressed by the presentation at PHP2007. In particular, I think PHP is missing persistance via annotations and Stubbles looks promising. However, I could not find documentation about this aspect on the wiki, nor anywhere else (except of course the phpDocumentor docs). Is it this still in a non mature state? Is there some other documentation?
Thanks in advance. Congratulations for the work about Stubble.
you are right, we should create a mailing list. I will take care of this.
The persistence API is still considered experimental, which is why there is no documentation yet. This is mainly because I think some features are still missing. However you might want to take a look into the experiments directory of a checkout (or browse it online: http://stubbles.net/browser/trunk/experiments/people/mikey/persistence) for a working example. Additionally you may contact me under mikey AT stubbles DOT net.