protected static function assertNoSniffErrorInFile(File $phpcsFile) : void { $errors = $phpcsFile->getErrors(); self::assertEmpty($errors, sprintf('No errors expected, but %d errors found.', count($errors))); }