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

Breadcrumb

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

function TestCase::getSniffClassName

*

Return value

class-string

3 calls to TestCase::getSniffClassName()
TestCase::checkFile in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/TestCase.php
*
TestCase::getSniffClassReflection in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/TestCase.php
TestCase::getSniffName in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/TestCase.php

File

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

Class

TestCase
@codeCoverageIgnore

Namespace

SlevomatCodingStandard\Sniffs

Code

protected static function getSniffClassName() : string {
    
    /** @var class-string $sniffClassName */
    $sniffClassName = substr(static::class, 0, -strlen('Test'));
    return $sniffClassName;
}
RSS feed
Powered by Drupal