ArgumentsMatcher
TypeArgumentsMatcher matches the actual arguments agains a list of types.
public function TypeArgumentsMatcher(expectedTypes:Array)
Constructs a new TypeArgumentsMatcher instance.
If a type in the expectedType array is null or
undefined the expected and actual argument will be compared.
If an element in the expectedType array is an instance of type
ArgumentMatcher, this argument matcher will be used to check whether
the actual argument is correct.
expectedTypes | the expected types of the arguments |
public function matchArguments(expectedArguments:Array, actualArguments:Array):BooleanCompares the actual arguments only by type against the expected types given on contruction.
If a type of the expected types is null or undefined the
expected and actual argument will be compared directly with the strict equals
operator.
false will be returned if:
actualArguments | the actual arguments |