function CallCenter::findCalls
Searches for calls by method name & arguments wildcard.
Parameters
string $methodName:
ArgumentsWildcard $wildcard:
Return value
list<Call>
File
-
vendor/
phpspec/ prophecy/ src/ Prophecy/ Call/ CallCenter.php, line 136
Class
- CallCenter
- Calls receiver & manager.
Namespace
Prophecy\CallCode
public function findCalls($methodName, ArgumentsWildcard $wildcard) {
$methodName = strtolower($methodName);
return array_values(array_filter($this->recordedCalls, function (Call $call) use ($methodName, $wildcard) {
return $methodName === strtolower($call->getMethodName()) && 0 < $call->getScore($wildcard);
}));
}