Class org.as2lib.test.mock.support.DefaultArgumentsMatcher

org.as2lib.core.BasicClass
   +--org.as2lib.test.mock.support.DefaultArgumentsMatcher

Implemented Interfaces

ArgumentsMatcher

Description

DefaultArgumentsMatcher matches the expected arguments agains the actual arguments. If an argument is itself an array the elements of this array are matched, not the array as object itself.

Method Index

new DefaultArgumentsMatcher()

matchArguments()

Inherited from BasicClass

toString()

Constructor Detail

DefaultArgumentsMatcher

public function DefaultArgumentsMatcher(Void)

Constructs a new DefaultArgumentsMatcher instance.

Method Detail

matchArguments

public function matchArguments(expectedArguments:Array, actualArguments:Array):Boolean

Matches the passed-in expectedArguments against the actualArguments. Inner arrays are stepped through recursively.

Parameters

expectedArgumentsthe expected arguments
actualArgumentsthe actual arguments

Return

true if the passed-in arguments match else false

Specified By

matchArguments() in org.as2lib.test.mock.ArgumentsMatcher