php-codesniffer/tests/DigiComp/Sniffs/Commenting/VariableCommentSniffTest.php
Ferdinand Kuhl 42a7968cee
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/code-style Pipeline was successful
allow null in union types of VariableCommentSniff
2023-02-10 17:50:54 +01:00

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