function CallCenter::findMethodProphecies
@phpstan-return list<array{int, MethodProphecy}>
Parameters
ObjectProphecy<object> $prophecy:
string $methodName:
array<mixed> $arguments:
Return value
array
2 calls to CallCenter::findMethodProphecies()
- CallCenter::checkUnexpectedCalls in vendor/
phpspec/ prophecy/ src/ Prophecy/ Call/ CallCenter.php - CallCenter::makeCall in vendor/
phpspec/ prophecy/ src/ Prophecy/ Call/ CallCenter.php - Makes and records specific method call for object prophecy.
File
-
vendor/
phpspec/ prophecy/ src/ Prophecy/ Call/ CallCenter.php, line 245
Class
- CallCenter
- Calls receiver & manager.
Namespace
Prophecy\CallCode
private function findMethodProphecies(ObjectProphecy $prophecy, $methodName, array $arguments) {
$matches = array();
foreach ($prophecy->getMethodProphecies($methodName) as $methodProphecy) {
if (0 < ($score = $methodProphecy->getArgumentsWildcard()
->scoreArguments($arguments))) {
$matches[] = array(
$score,
$methodProphecy,
);
}
}
return $matches;
}