shabbyrobe / defile
Stream wrapper for testing code dependent on PHP's filesystem functions
Requires
None
Requires (Dev)
- phpunit/phpunit: 4.1.*
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-11-22 12:04:27 UTC
README
[!WARNING] Packagist's supply chain security is based not just on content hash, but also the original URL. That means all the old versions, which I have long-since relocated from github, cannot be installed. One new version has been published to try to rectify this, but it is the last time I will ever interact with Packagist. If, for some bizarre reason, you still use this, please move off it immediately. It will eventually break forever, if it hasn't already.
Defile - PHP Stream Wrapping File System Emulation Disaster
This was never finished, and has been unmaintained since 2015. Please don't use it.
(Never gonna) TODO:
- chmod, chgrp, chown
- Generator streams (sort of like /dev/zero)
- Memory should be able to optionally use php://temp (maybe should use php://memory for everything)
- StreamRegistry::umask() instead of system umask() (though system umask() should still be usable)