Test::AutoMock::Mock::Functions - Functions to manipulate mocks
This module provides methods of Test::AutoMock::Mock::Basic.
We defined these methods into different packages so as not to affect the behavior of the mock.
Rather than using this class directly, it would be more convenient to use a wrapper defined for Test::AutoMock.
new_mock
my $mock1 = new_mock('Test::AutoMock::Mock::Basic'); my $mock2 = new_mock( 'Test::AutoMock::Mock::Overloaded', methods => { 'some->method' => 1 }, );
This is a constructor. Pass in the name of the class to instantiate as the first argument.
get_manager
Get the manager object of the mock.
Copyright (C) Masahiro Honma.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Masahiro Honma <hiratara@cpan.org>
To install Test::AutoMock, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::AutoMock
CPAN shell
perl -MCPAN -e shell install Test::AutoMock
For more information on module installation, please visit the detailed CPAN module installation guide.