The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 0.011

  • Fix for my $file_contents = do { local $/; <$fh> };
  • Mock CORE::GLOBAL::unlink and support directories for unlink
  • Mock CORE::GLOBAL::mkdir
  • Mock CORE::GLOBAL::rmdir
  • MockFile->symlink now follows the symlink norm of ($target, $file), not the reverse.
  • New mock helper 'exists' to check if the file is there.
  • New mock helper 'permissions' tells you the current permissions of the mocked file.

Modules

Lets tests validate code which interacts with files without the file system ever being touched.
Provides a class object for Test::MockFile to give out for opendir calls.
Provides a class for Test::MockFile to tie to on open or sysopen.

Examples