ePages 7.28.0 - DE_EPAGES/Test/Mock/MockifyArgumentMatchers.pm

Package DE_EPAGES::Test::Mock::MockifyArgumentMatchers

Wrapper functions for Mockify argument matchers

@EXPORT_OK
String
Int
ArrayRef
HashRef
Object
Any
Undef

Functions

Any
ArrayRef
HashRef
Int
Object
String
Undef

Any

Creates a Mockify argument matcher for any arguments.

Syntax
Any();
Return
(refhash)
A Mockify argument matcher

ArrayRef

Creates a Mockify argument matcher for array reference arguments.

Syntax
ArrayRef();
ArrayRef( $Expected );
Input
$Expected (refarray)
An expected array reference argument (optional)
Return
(refhash)
A Mockify argument matcher

HashRef

Creates a Mockify argument matcher for hash reference arguments.

Syntax
HashRef();
HashRef( $Expected );
Input
$Expected (refhash)
An expected hash reference argument (optional)
Return
(refhash)
A Mockify argument matcher

Int

Creates a Mockify argument matcher for integer arguments.

Syntax
Int();
Int( $Expected );
Input
$Expected (integer)
An expected integer argument (optional)
Return
(refhash)
A Mockify argument matcher

Object

Creates a Mockify argument matcher for object arguments.

Syntax
Object();
Object( $Expected );
Input
$Expected (string)
An expected package name (optional)
Return
(refhash)
A Mockify argument matcher

String

Creates a Mockify argument matcher for string arguments.

Syntax
String();
String( $Expected );
Input
$Expected (string)
An expected string argument (optional)
Return
(refhash)
A Mockify argument matcher

Undef

Creates a Mockify argument matcher for undefined arguments.

Syntax
Undef();
Return
(refhash)
A Mockify argument matcher