ePages 7.0.0 - DE_EPAGES/Test/Mock/Mockify/MethodCallCounter.pm

Package DE_EPAGES::Test::Mock::Mockify::MethodCallCounter

encapsulate the Call Counter for Mockify

Functions

addMethod
getAmountOfCalls
increment
new

addMethod

add the Method '$MethodName' to the counter

Syntax
addMethod( $MethodName );
Input
$MethodName (string)
name of method

getAmountOfCalls

returns the amount of calls for the method '$MethodName' throws error if the method was not added to Mockify

Syntax
getAmountOfCalls( $MethodName );
Input
$MethodName (string)
name of method
Return
$AmountOfCalls (integer)
Amount of calles

increment

increment the the counter for the Method '$MethodName'

Syntax
increment( $MethodName );
Input
$MethodName (string)
name of method

new

constructor

Syntax
new( );
Return
$self (DE_EPAGES::Test::Mock::MethodCallCounter)
self