井関 恵太 > Test-EasyMock-0.05 > Test::EasyMock::MockControl

Download:
Test-EasyMock-0.05.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: Test-EasyMock-0.10

NAME ^

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

CLASS METHODS ^

create_control

Create a default control instance.

CONSTRUCTORS ^

new($expectation)

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.

syntax highlighting: