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

Breadcrumb

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

function TestSuite::methodDoesNotExistOrIsDeclaredInTestCase

2 calls to TestSuite::methodDoesNotExistOrIsDeclaredInTestCase()
TestSuite::invokeMethodsAfterLastTest in vendor/phpunit/phpunit/src/Framework/TestSuite.php
TestSuite::invokeMethodsBeforeFirstTest in vendor/phpunit/phpunit/src/Framework/TestSuite.php

File

vendor/phpunit/phpunit/src/Framework/TestSuite.php, line 566

Class

TestSuite
@template-implements IteratorAggregate<int, Test>

Namespace

PHPUnit\Framework

Code

private function methodDoesNotExistOrIsDeclaredInTestCase(string $methodName) : bool {
    $reflector = new ReflectionClass($this->name);
    return !$reflector->hasMethod($methodName) || $reflector->getMethod($methodName)
        ->getDeclaringClass()
        ->getName() === TestCase::class;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal