norwichtech/file-wrapper

A simple file system function wrapper that can be easily mocked or stubbed for testing

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Installs: 22 884

Dependents: 2

Suggesters: 0

Security: 0

Stars: 2

Watchers: 4

Forks: 1

pkg:composer/norwichtech/file-wrapper

2.2.0 2017-09-27 10:31 UTC

This package is not auto-updated.

Last update: 2020-11-28 08:30:04 UTC


README

A simple file system function wrapper that can be easily mocked or stubbed for testing

To include simply use

$fileWrapper = new NorwichTech/FileWrapper/FileWrapper;

Then replace normal PHP file functions like file_exists($file) with $fileWrapper->fileExists($file) which can be substituted out in testing to simulate different outcomes.