mikey179/vfsStream — pull request #33 by nikcorg (2012-04-03 12:04:37+00:00)
Title: Add support for stream_truncate

Since PHP 5.4, the streamWrapper class supports `streamWrapper::stream_truncate`. It would be nice to have support for this in vfs.

I created a simple implementation with test cases, feel free to re-implement or request modifications if it isn't up to par.

External resources:
http://www.php.net/manual/en/streamwrapper.stream-truncate.php