function TestCase::methodDoesNotExistOrIsDeclaredInTestCase
1 call to TestCase::methodDoesNotExistOrIsDeclaredInTestCase()
- TestCase::invokeHookMethods in vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php - @psalm-param list<non-empty-string> $hookMethods @psalm-param…
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php, line 2204
Class
- TestCase
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\FrameworkCode
private function methodDoesNotExistOrIsDeclaredInTestCase(string $methodName) : bool {
$reflector = new ReflectionObject($this);
return !$reflector->hasMethod($methodName) || $reflector->getMethod($methodName)
->getDeclaringClass()
->getName() === self::class;
}