Test::EasyMock::ExpectationSetters - Allows setting expectations for an associated expected invocation.
Create a instance.
Add scalar result to the expectation.
Add array result to the expectation.
Add list result to the expectation.
Add a code to the expectation, it calculate an answer.
Add die behavior to the expectation.
Set scalar result as a stub to the expectation.
Set array result as a stub to the expectation.
Set list result as a stub to the expectation.
Add a code as a stub to the expectation, it calculate an answer.
Set die behavior as as stub to the expectation.
To install Test::EasyMock, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::EasyMock
CPAN shell
perl -MCPAN -e shell install Test::EasyMock
For more information on module installation, please visit the detailed CPAN module installation guide.