PackageTrack
Sign in Get early access

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 2024
2013 2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 26
  1. v1.6.12 29 Aug 2024
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v1.6.11...v1.6.12

    Open source →
    Release notes
    • Drop php 5 and 7.0 support as new versions enforced a syntax change that is not compatible with the old versions.
    Open source →
  2. v1.6.11 23 Feb 2022
    Release notes

    This is a maintenance release adding support for PHP 8.2.

    • Add support for PHP 8.2's $content property in vfsStreamWrapper
    Open source →
    Release notes

    This release's notes have been redacted. See release notes for vfsStream 1.6.11 instead.

    [See the purpose of this release in #271]

    Open source →
    Release notes
    • Add support for PHP 8.2's $context property in vfsStreamWrapper
    Open source →
    Release notes
    • Add support for PHP 8.2's $content property in vfsStreamWrapper
    Open source →
  3. v1.6.11-alpha.0 no date pre-release

    Nothing published for this version

  4. v1.6.10 25 Sep 2021
    Release notes

    This is a maintenance release adding support for PHP 8.1.

    • Fix PHP 8.1 deprecation warnings affecting the following (#258, #259):
      • vfsStreamContainerIterator::current()
      • vfsStreamContainerIterator::next()
      • vfsStreamContainerIterator::key()
      • vfsStreamContainerIterator::rewind()
      • vfsStreamDirectory::getIterator()
      • vfsStreamPrintVisitor::printContent()
    Open source →
    Release notes

    This release's notes have been redacted. See release notes for vfsStream 1.6.10 instead.

    [See the purpose of this release in #263]

    Open source →
    Release notes
    • 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
    Open source →
  5. v1.6.10-alpha.0 02 Aug 2021 pre-release

    Nothing published for this version

  6. v1.6.9 16 Jul 2021
    Release notes
    • Fix deprecation warning on StringBasedFileContent for PHP 8.1 (#252)
    • Fix return type for FileContent::write(), SeekableFileContent::write(), and vfsStreamFile::write() to fix static analysis tools
    Open source →
    Release notes
    • Fix deprecation warning on StringBasedFileContent for PHP 8.1 (#252)
      • Fix return type for FileContent::write() to fix static analysis tools
    Open source →
  7. v1.6.8 30 Oct 2019
    Release notes
    • Fix StringBasedFileContent::doRead to always return a string (#204)
    Open source →
    Release notes
    • Fix StringBasedFileContent::doRead to always return a string (#204)
    Open source →
  8. v1.6.7 01 Aug 2019
    Release notes
    • fix PHP 7.4 deprecation warnings (backported #189 from master)
    Open source →
    Release notes
    • fix PHP 7.4 deprecation warnings (backported #189 from master)
    Open source →
  9. v1.6.6 08 Apr 2019
    Release notes
    Open source →
    Release notes
    • backported #174 from master, original PR provided by @localheinz
    Open source →
  10. v1.6.5 01 Aug 2017
    Release notes
    • fixed #157 seeking before beginning of file should fail, reported and fixed by @merijnvdk
    • structure array in vfsStream::create() and vfsStream::setup() now can contain instances of org\bovigo\vfs\content\FileContent and org\bovigo\vfs\vfsStreamFile, patch provided by Joshua Smith (@jsmitty12)
    Open source →
    Release notes
    • fixed #157 seeking before beginning of file should fail, reported and fixed by @merijnvdk
      • structure array in vfsStream::create() and vfsStream::setup() now can contain instances of org\bovigo\vfs\content\FileContent and org\bovigo\vfs\vfsStreamFile, patch provided by Joshua Smith (@jsmitty12)
    Open source →
    Release notes
    • fixed #157 seeking before beginning of file should fail, reported and fixed by @merijnvdk
      • structure array in vfsStream::create() and vfsStream::setup() now can contain instances of org\bovigo\vfs\content\FileContent and org\bovigo\vfs\vfsStreamFile, patch provivded by Joshua Smith (@jsmitty12)
    Open source →
  11. v1.6.4 18 Jul 2016
    Release notes
    • fixed #134 type safe directory names, reported and fixed by Sebastian Hopfe
    Open source →
  12. v1.6.3 09 Apr 2016
    Release notes
    • fixed #131 recursive mkdir() fails if the last dirname is '0'
    Open source →
  13. v1.6.2 13 Jan 2016
    Release notes
    • fixed #128 duplicate "valid" files/directories and incorrect file names
    Open source →
  14. v1.6.1 04 Dec 2015
    Release notes
    • vfsStream::url() didn't urlencode single path parts while vfsStream::path() did urldecode them
      • fixed #120, #122: create directory with trailing slash results in "Uninitialized string offset: 0"
    Open source →
  15. v1.6.0 06 Oct 2015
    Release notes
    • 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
    Open source →
  16. v1.5.0 29 Mar 2015
    Release notes
    • 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
    Open source →
  17. v1.4.0 14 Sep 2014
    Release notes
    • 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
    Open source →
  18. v1.3.0 21 Jul 2014
    Release notes
    • 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()
    Open source →
  19. v1.2.0 01 Apr 2013
    Release notes
    • implemented issue #34: provide url() method on all vfsStreamContent instances
      • 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() and chgrp() must consider permissions of directory where file/directory is inside
      • fixed issue #53: chmod(), chown() and chgrp() must consider current user and current owner of file/directoy to change
    Open source →
  20. v1.1.0 25 Aug 2012
    Release notes
    • implemented issue #11: add support for streamWrapper::stream_metadata() vfsStream now supports touch(), chown(), chgrp() and chmod()
      • implemented issue #33: add support for stream_truncate() (provided by https://github.com/nikcorg)
      • implemented issue #35: size limit (quota) for VFS
    Open source →
  21. v1.1.0-beta1 09 Aug 2012 pre-release

    Nothing published for this version

  22. v1.0.0 15 May 2012
    Release notes
    • 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
    Open source →
  23. v1.0.0-beta5 30 Apr 2012 pre-release

    Nothing published for this version

  24. 1.0.0-beta4 02 Apr 2012 pre-release

    Nothing published for this version

  25. 1.0.0-beta3 27 Mar 2012 pre-release

    Nothing published for this version

  26. 1.0.0-beta2 21 Feb 2012 pre-release

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive