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

Breadcrumb

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

function TestCase::getSniffClassReflection

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/TestCase.php, line 185

Class

TestCase
@codeCoverageIgnore

Namespace

SlevomatCodingStandard\Sniffs

Code

private static function getSniffClassReflection() : ReflectionClass {
    static $reflections = [];
    $className = static::getSniffClassName();
    return $reflections[$className] ?? ($reflections[$className] = new ReflectionClass($className));
}
RSS feed
Powered by Drupal