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

NAME

Test::EasyMock::MockControl - Control behavior of the mock object.

CLASS METHODS

create_control

Create a default control instance.

CONSTRUCTORS

new([$module|$object])

Create a instance.

INSTANCE METHODS

create_mock

Create a mock instance.

process_method_invocation($mock, $method, @args)

Process method invocation. Dispatch to replay or record method.

replay_method_invocation($mock, $method, @args)

Replay the method invocation.

record_method_invocation($mock, $method, @args)

Record the method invocation.

find_expectation($args)

Find the expectation by arguments.

expect($expectation)

Record the expectation of the mock method invocation.

replay

Change to replay mode.

reset

Clear expectations and change to record mode.

verify

Verify the mock method invocations.