function CachingParser::forMethod
@psalm-param class-string $className @psalm-param non-empty-string $methodName
Overrides Parser::forMethod
1 call to CachingParser::forMethod()
- CachingParser::forClassAndMethod in vendor/
phpunit/ phpunit/ src/ Metadata/ Parser/ CachingParser.php - @psalm-param class-string $className @psalm-param non-empty-string $methodName
File
-
vendor/
phpunit/ phpunit/ src/ Metadata/ Parser/ CachingParser.php, line 54
Class
- CachingParser
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\Metadata\ParserCode
public function forMethod(string $className, string $methodName) : MetadataCollection {
assert(class_exists($className));
assert(method_exists($className, $methodName));
$key = $className . '::' . $methodName;
if (isset($this->methodCache[$key])) {
return $this->methodCache[$key];
}
$this->methodCache[$key] = $this->reader
->forMethod($className, $methodName);
return $this->methodCache[$key];
}