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

Breadcrumb

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

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

Code

private function methodDoesNotExistOrIsDeclaredInTestCase(string $methodName) : bool {
    $reflector = new ReflectionObject($this);
    return !$reflector->hasMethod($methodName) || $reflector->getMethod($methodName)
        ->getDeclaringClass()
        ->getName() === self::class;
}
RSS feed
Powered by Drupal