php-codesniffer/tests/DigiComp/Sniffs/Commenting/VariableCommentSniffTest.php

17 lines
438 B
PHP
Raw Permalink Normal View History

<?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');
var_dump($report->getErrors());
self::assertCount(1, $report->getWarnings()[20][6]);
self::assertCount(2, $report->getErrors());
}
}