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

Breadcrumb

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

function TestCase::assertAllFixedInFile

File

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

Class

TestCase
@codeCoverageIgnore

Namespace

SlevomatCodingStandard\Sniffs

Code

protected static function assertAllFixedInFile(File $phpcsFile) : void {
    $phpcsFile->disableCaching();
    $phpcsFile->fixer
        ->fixFile();
    self::assertStringEqualsFile(preg_replace('~(\\.php)$~', '.fixed\\1', $phpcsFile->getFilename()), $phpcsFile->fixer
        ->getContents());
}
RSS feed
Powered by Drupal