Test::MethodFixtures::Storage::File - Simple file storage for method mocking with Test::MethodFixtures
my $storage = Test::MethodFixtures::Storage::File->new( { dir => 't/.methodfixtures' # default } );
Subclass of Test::MethodFixtures::Storage. Implements store and retrieve
store
retrieve
my $storage = Test::MethodFixtures::Storage::File->new( \%args );
Class method. Constructor.
Will die if the storage directory does not exist and cannot be written to. Will create the storage directory if the default (<t/.methodfixtures>) is used.
<t/.methodfixtures
Object method. Stores to file.
Object method. Retrieves from file. Empty return if not found (i.e. nothing stored).
To install Test::MethodFixtures, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::MethodFixtures
CPAN shell
perl -MCPAN -e shell install Test::MethodFixtures
For more information on module installation, please visit the detailed CPAN module installation guide.