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

NAME

Test::EasyMock::ExpectationSetters - Allows setting expectations for an associated expected invocation.

CONSTRUCTORS

new($expectation)

Create a instance.

METHOD

and_scalar_return($value)

Add scalar result to the expectation.

and_array_return(@values)

Add array result to the expectation.

and_list_return(@values)

Add list result to the expectation.

and_answer($code)

Add a code to the expectation, it calculate an answer.

and_die([$message])

Add die behavior to the expectation.

and_stub_scalar_return($value)

Set scalar result as a stub to the expectation.

and_stub_array_return(@values)

Set array result as a stub to the expectation.

and_stub_list_return(@values)

Set list result as a stub to the expectation.

and_stub_answer($code)

Add a code as a stub to the expectation, it calculate an answer.

and_stub_die([$message])

Set die behavior as as stub to the expectation.