function InvocationMocker::configuredMethod
2 calls to InvocationMocker::configuredMethod()
- InvocationMocker::ensureTypeOfReturnValues in vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ Runtime/ Builder/ InvocationMocker.php - InvocationMocker::willReturnMap in vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ Runtime/ Builder/ InvocationMocker.php - @psalm-param array<int, array<int, mixed>> $valueMap
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ Runtime/ Builder/ InvocationMocker.php, line 288
Class
- InvocationMocker
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\Framework\MockObject\BuilderCode
private function configuredMethod() : ?ConfigurableMethod {
$configuredMethod = null;
foreach ($this->configurableMethods as $configurableMethod) {
if ($this->matcher
->methodNameRule()
->matchesName($configurableMethod->name())) {
if ($configuredMethod !== null) {
return null;
}
$configuredMethod = $configurableMethod;
}
}
return $configuredMethod;
}