public function findCalls($functionName, ArgumentsWildcard $wildcard)
    {
        return array_values(
            array_filter($this->recordedCalls, function (Call $call) use ($wildcard, $functionName) {
                return $call->getMethodName() === $functionName &&
                    0 < $wildcard->scoreArguments($call->getArguments());
            })
        );
    }
public function findCalls($functionName, ArgumentsWildcard $wildcard)
    {
        return array_values(
            array_filter($this->recordedCalls, function (Call $call) use ($wildcard, $functionName) {
                return $call->getMethodName() === $functionName &&
                    0 < $wildcard->scoreArguments($call->getArguments());
            })
        );
    }
public function findCalls ( $ functionName , ArgumentsWildcard $ wildcard ) { return array_values ( array_filter ( $ this -> recordedCalls , function ( Call $ call ) use ( $ wildcard , $ functionName ) { return $ call -> getMethodName ( ) === $ functionName && 0 < $ wildcard -> scoreArguments ( $ call -> getArguments ( ) ) ; } ) ) ; }
Searches for calls by method name & arguments wildcard.

@param string            $functionName
@param ArgumentsWildcard $wildcard

@return Call[]
Searches for calls by method name & arguments wildcard .