NAME

Test::MethodFixtures::Storage::File - Simple file storage for method mocking with Test::MethodFixtures

SYNOPSIS

my $storage = Test::MethodFixtures::Storage::File->new(
    {   dir => 't/.methodfixtures'    # default
    }
);

DESCRIPTION

Subclass of Test::MethodFixtures::Storage. Implements store and retrieve

METHODS

new

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.

store

Object method. Stores to file.

retrieve

Object method. Retrieves from file. Empty return if not found (i.e. nothing stored).