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

Breadcrumb

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

function TestCase::assertNoSniffWarningInFile

File

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

Class

TestCase
@codeCoverageIgnore

Namespace

SlevomatCodingStandard\Sniffs

Code

protected static function assertNoSniffWarningInFile(File $phpcsFile) : void {
    $warnings = $phpcsFile->getWarnings();
    self::assertEmpty($warnings, sprintf('No warnings expected, but %d warnings found.', count($warnings)));
}
RSS feed
Powered by Drupal