井関 恵太
and 2 contributors

NAME

Test::EasyMock::Expectation - A expected behavior object.

CONSTRUCTORS

new(method=>$method, args=>$args})

Create a instance.

PROPERTIES

method - An expected method name.

METHODS

push_result($code)

Add a method result behavior.

set_stub_result($code)

Set a method result behavior as stub.

remove_implicit_result()

Remove results which flagged with 'implicit'.

retrieve_result()

Retrieve a result value.

has_result

It is tested whether it has a result.

has_stub_result

It is tested whether it has a stub result.

matches($args)

It is tested whether the specified argument matches.

is_satisfied()

The call to expect tests whether it was called briefly.

unsatisfied_message()

The message showing a lacking call is acquired.