Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CallCenter.php

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\Call

Code

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);
    }));
}
RSS feed
Powered by Drupal