mikey179/vfsstream
Virtual file system to mock the real file system in unit tests.
v1.6.12
118M downloads/mo
#463 most downloaded on Packagist
bovigo/vfsStream
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 2.5 years
Nearly every release is documented
notes for 19 of 19 stable releases
Nothing withdrawn
no release was ever pulled
15 years old
26 releases · first in 2012
0 releases in the last 12 months
see the full history below
Release timeline
25 releases · Feb 2012 to Aug 2024Releases
latest 26-
v1.6.1229 Aug 2024Release notes
Open source →What's Changed
- Fix PHP 8.4 deprecate-implicitly-nullable-types by @andypost in #290
- Drop support for php 5 by @jaapio in #292
New Contributors
Full Changelog: v1.6.11...v1.6.12
Release notes
Open source →- Drop php 5 and 7.0 support as new versions enforced a syntax change that is not compatible with the old versions.
-
v1.6.1123 Feb 2022Release notes
Open source →This is a maintenance release adding support for PHP 8.2.
- Add support for PHP 8.2's
$contentproperty invfsStreamWrapper
Release notes
Open source →This release's notes have been redacted. See release notes for vfsStream 1.6.11 instead.
[See the purpose of this release in #271]
- Add support for PHP 8.2's
-
v1.6.11-alpha.0no date pre-releaseNothing published for this version
-
v1.6.1025 Sep 2021Release notes
Open source →This release's notes have been redacted. See release notes for vfsStream 1.6.10 instead.
[See the purpose of this release in #263]
Release notes
Open source →- Fix more deprecation warnings for PHP 8.1 support affecting the following:
vfsStreamContainerIterator::current()vfsStreamContainerIterator::next()vfsStreamContainerIterator::key()vfsStreamContainerIterator::rewind()vfsStreamDirectory::getIterator()vfsStreamPrintVisitor::printContent()
- Fix PHP 8.1 support in
vfsStreamPrintVisitor
- Fix more deprecation warnings for PHP 8.1 support affecting the following:
-
v1.6.10-alpha.002 Aug 2021 pre-releaseNothing published for this version
-
v1.6.916 Jul 2021Release notes
Open source →- Fix deprecation warning on
StringBasedFileContentfor PHP 8.1 (#252) - Fix return type for
FileContent::write(),SeekableFileContent::write(), andvfsStreamFile::write()to fix static analysis tools
Release notes
Open source →- Fix deprecation warning on
StringBasedFileContentfor PHP 8.1 (#252)- Fix return type for
FileContent::write()to fix static analysis tools
- Fix return type for
- Fix deprecation warning on
-
v1.6.830 Oct 2019 -
v1.6.701 Aug 2019 -
v1.6.608 Apr 2019 -
v1.6.501 Aug 2017Release notes
Open source →- fixed #157 seeking before beginning of file should fail, reported and fixed by @merijnvdk
- structure array in
vfsStream::create()andvfsStream::setup()now can contain instances oforg\bovigo\vfs\content\FileContentandorg\bovigo\vfs\vfsStreamFile, patch provided by Joshua Smith (@jsmitty12)
Release notes
Open source →- fixed #157 seeking before beginning of file should fail, reported and fixed by @merijnvdk
- structure array in
vfsStream::create()andvfsStream::setup()now can contain instances oforg\bovigo\vfs\content\FileContentandorg\bovigo\vfs\vfsStreamFile, patch provided by Joshua Smith (@jsmitty12)
- structure array in
Release notes
Open source →- fixed #157 seeking before beginning of file should fail, reported and fixed by @merijnvdk
- structure array in
vfsStream::create()andvfsStream::setup()now can contain instances oforg\bovigo\vfs\content\FileContentandorg\bovigo\vfs\vfsStreamFile, patch provivded by Joshua Smith (@jsmitty12)
- structure array in
-
v1.6.418 Jul 2016Release notes
Open source →- fixed #134 type safe directory names, reported and fixed by Sebastian Hopfe
-
v1.6.309 Apr 2016 -
v1.6.213 Jan 2016 -
v1.6.104 Dec 2015Release notes
Open source →vfsStream::url()didn't urlencode single path parts whilevfsStream::path()did urldecode them- fixed #120, #122: create directory with trailing slash results in "Uninitialized string offset: 0"
-
v1.6.006 Oct 2015Release notes
Open source →- added
vfsStreamWrapper::unregister(), provided by @malkusch with #114- fixed #115: incorrect handling of
..in root directory on PHP 5.5, fix provided by @acoulton with #116
- fixed #115: incorrect handling of
- added
-
v1.5.029 Mar 2015Release notes
Open source →- implemented #91:
vfsStream::copyFromFileSystem()should create large file instances- implemented #92:
vfsStream::copyFromFileSystem()should respect block devices - fixed #107:
touch()does not respect file permissions - fixed #105: vfs directory structure is not reset after each test
- fixed #104: vfsStream can't handle url encoded pathes
- implemented #92:
- implemented #91:
-
v1.4.014 Sep 2014Release notes
Open source →- implemented #85: Added support for emulating block devices in the virtual filesystem, feature provided by Harris Borawski
- fixed #68: Unlink a non-existing file now triggers a PHP warning
- implemented #85: Added support for emulating block devices in the virtual filesystem, feature provided by Harris Borawski
-
v1.3.021 Jul 2014Release notes
Open source →- implemented #79: possibility to mock large files without large memory footprint, see https://github.com/mikey179/vfsStream/wiki/MockingLargeFiles
- implemented #67: added partial support for text-mode translation flag (i.e., no actual translation of line endings takes place) so it no longer throws an exception (provided by Anthon Pang)
- fixed issue #74: issue with trailing windows path separators (provided by Sebastian Krüger)
- fixed issue #50: difference between real file system and vfs with
RecursiveDirectoryIterator - fixed issue #80: touch with no arguments for modification and access time behave incorrect
- deprecated
org\bovigo\vfs\vfsStreamFile::readUntilEnd() - deprecated
org\bovigo\vfs\vfsStreamFile::getBytesRead()
- implemented #79: possibility to mock large files without large memory footprint, see https://github.com/mikey179/vfsStream/wiki/MockingLargeFiles
-
v1.2.001 Apr 2013Release notes
Open source →- implemented issue #34: provide
url()method on allvfsStreamContentinstances- added
org\bovigo\vfs\vfsStreamContent::url() - added
org\bovigo\vfs\vfsStreamContent::path() - fixed issue #40: flock implementation doesn't work correctly, patch provided by Kamil Dziedzic
- fixed issue #49: call to member function on a non-object when trying to delete a file one above root where a file with same name in root exists
- fixed issue #51:
unlink()must consider permissions of directory where file is inside, not of the file to unlink itself - fixed issue #52:
chmod(),chown()andchgrp()must consider permissions of directory where file/directory is inside - fixed issue #53:
chmod(),chown()andchgrp()must consider current user and current owner of file/directoy to change
- added
- implemented issue #34: provide
-
v1.1.025 Aug 2012Release notes
Open source →- implemented issue #11: add support for
streamWrapper::stream_metadata()vfsStream now supportstouch(),chown(),chgrp()andchmod()- implemented issue #33: add support for
stream_truncate()(provided by https://github.com/nikcorg) - implemented issue #35: size limit (quota) for VFS
- implemented issue #33: add support for
- implemented issue #11: add support for
-
v1.1.0-beta109 Aug 2012 pre-releaseNothing published for this version
-
v1.0.015 May 2012Release notes
Open source →- raised requirement for PHP version to 5.3.0
- migrated codebase to use namespaces
- changed distribution from PEAR to Composer
- implemented issue #30: support "c" mode for
fopen() - fixed issue #31: prohibit aquiring locks when already locked / release lock on
fclose() - fixed issue #32: problems when subfolder has same name as folder
- fixed issue #36:
vfsStreamWrapper::stream_open()should return false while trying to open existing non-writable file, patch provided by Alexander Peresypkin
- raised requirement for PHP version to 5.3.0
-
v1.0.0-beta530 Apr 2012 pre-releaseNothing published for this version
-
1.0.0-beta402 Apr 2012 pre-releaseNothing published for this version
-
1.0.0-beta327 Mar 2012 pre-releaseNothing published for this version
-
1.0.0-beta221 Feb 2012 pre-releaseNothing published for this version