php-codesniffer/tests/DigiComp/Sniffs/Commenting/VariableCommentSniffTest.php
Ferdinand Kuhl 7063c47d64
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
Fixing doc type annotation sniffs to correctly ignore attributes
2023-02-10 15:37:30 +01:00

15 lines
398 B
PHP

<?php
namespace DigiComp\PhpCodesniffer\DigiComp\Sniffs\Commenting;
use SlevomatCodingStandard\Sniffs\TestCase;
class VariableCommentSniffTest extends TestCase
{
public function testErrors(): void
{
$report = self::checkFile(__DIR__ . '/data/comments.php');
self::assertCount(1, $report->getWarnings()[20][6]);
self::assertCount(2, $report->getErrors());
}
}